This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] python: load *-gdb.py for shlibs during attach
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 Sep 2010 13:23:00 -0600
- Subject: Re: [patch] python: load *-gdb.py for shlibs during attach
- References: <20100922090919.GA21901@host1.dyn.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> currently if you attach to or load a core file for executable, its
Jan> -gdb.py script is loaded. But none -gdb.py for the shared
Jan> libraries.
Jan> 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * main.c: Include objfiles.h.
Jan> (captured_main): New variable objfile. Call
Jan> load_auto_scripts_for_objfile for ALL_OBJFILES.
FWIW, I agree this is the right thing to do.
Tom