This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch, doc RFA] New command-line option -na.
On Mon, Dec 13, 2010 at 10:55 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sat, 11 Dec 2010 01:47:34 +0100, Doug Evans wrote:
>> The capability exists today with "maint set python auto-load on|off",
>> but that can't be used to disable scripts from a program provided on
>> the command line.
>> In order to use that, one has to start gdb without a program,
>> disable auto-loading, and *then* use the "file" command. ?Bleah.
>
> I use the "file" trick commonly for example for:
> ? ? ? ?gdb -ex 'set debug-file-directory /tmp/foo:/usr/lib/debug' -ex 'file /bin/date'
>
>
>> I'm renaming "maint set python auto-load on|off" to
>> "set auto-load-scripts on|off".
>
> I would find this part as a sufficient one. ?Otherwise we should introduce
> a command-line option also for "debug-file-directory" and probably others.
> Do you find a common need for `-na'?
The high order bit is the change to the option name.
I wonder if it'd be sufficiently useful to provide support for adding
new command-line options in python.
Then I could add -na in system.gdbinit.