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
On Wed, 22 Sep 2010 21:23:00 +0200, Tom Tromey wrote:
> 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.
BTW what do you think about the case when the called python scripts would
manipulate the ALL_OBJFILES list? But even ALL_OBJFILES_SAFE would not be
safe enough in such case.
Sure it could be protected some other way like to lookup again the saved
objfile name. But it can also deadlock. I guess there are more places like
that in GDB.
Regards,
Jan