This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add ability to "source" Python code
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: brobecker at adacore dot com, tromey at redhat dot com, drow at false dot org, pedro at codesourcery dot com, gdb-patches at sourceware dot org
- Date: Mon, 01 Jun 2009 11:45:56 -0400
- Subject: Re: RFC: add ability to "source" Python code
- References: <ud4doy981.fsf@gnu.org> <20090211220118.GE13021@adacore.com> <u3aekxq4k.fsf@gnu.org> <20090212062654.GG13021@adacore.com> <uy6wbwfx1.fsf@gnu.org> <20090213022246.GA5401@adacore.com> <utz6ywq8y.fsf@gnu.org> <20090217000746.GA3812@adacore.com> <u8wo5wvkh.fsf@gnu.org> <m3vdr83izz.fsf@fleche.redhat.com> <20090219200536.GA25486@adacore.com> <1243828612.9045.9.camel@hactar>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> Cc: Tom Tromey <tromey@redhat.com>, Eli Zaretskii <eliz@gnu.org>,
> drow@false.org, pedro@codesourcery.com, gdb-patches@sourceware.org
> Date: Mon, 01 Jun 2009 00:56:51 -0300
>
> This patch implements such tri-state setting:
>
> (gdb) help set script-extension
> Set mode for script filename extension recognition.
> off == no filename extension recognition (all sourced files are GDB scripts)
> soft == evaluate script according to filename extension, fallback to GDB script
> hard == evaluate script according to filename extension, error if not supported
>
> The default is 'soft'. When Python support is not compiled in, the code
> always assumes a GDB script.
>
> Is this good enough for everybody?
Fine with me.
However, I would suggest "strict" instead of "hard".