This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Debugging dynamically linked executables
- To: kettenis@wins.uva.nl
- Subject: Re: Debugging dynamically linked executables
- From: Stan Shebs <shebs@cygnus.com>
- Date: Mon, 7 Jun 1999 17:20:55 -0700
- CC: gdb@sourceware.cygnus.com
Date: Sat, 8 May 1999 16:45:39 +0200 (CEST)
From: Mark Kettenis <kettenis@wins.uva.nl>
AFAICT it is not possible to make gdb stop at the first instruction
that will be executed for a dynamically linked executable (which will
probably be the first instruction of the dynamic linker).
[...]
I was thinking about adding an option (suggested name
stop-on-startup), so that people could say "set stop-on-startup 1".
Would this be acceptable?
I read this, and got a sense of deja' vu (not dejagnu :-) ) about
having discussed this with Richard Henderson and Ulrich Drepper at
some point, in connection with debugging dynamic loaders...
In any case, the idea of a stop-on-startup option seems reasonable
to me. Since it's not a normal user option, you would probably want
to put it into the "obscure" class, perhaps even make it a maintenance
command.
Stan