This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] [2/2] .debug_gdb_scripts: defer main symfile auto-loading
- From: Tom Tromey <tromey at redhat dot com>
- To: dje at google dot com (Doug Evans)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 20 Apr 2010 13:19:06 -0600
- Subject: Re: [RFA] [2/2] .debug_gdb_scripts: defer main symfile auto-loading
- References: <20100416071343.DF64E84396@ruffy.mtv.corp.google.com>
- Reply-to: tromey at redhat dot com
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> So this patch defers auto-loading of scripts in the main symfile
Doug> at startup until after ./.gdbinit has been sourced.
This approach means that disabling auto-loading in ./.gdbinit will not
work. This seems like something that ought to be documented, at least.
Doug> +/* Load any auto-loaded scripts for OBJFILE. */
Doug> +
Doug> +void
Doug> +load_auto_scripts_for_objfile (struct objfile *objfile)
Doug> +{
Doug> + auto_load_objfile_script (objfile, GDBPY_AUTO_FILE_NAME);
Doug> + auto_load_section_scripts (objfile, GDBPY_AUTO_SECTION_NAME);
Doug> }
I suspect you need a dummy version of this function so that the
--disable-python case continues to work.
Tom