This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Under Linux/Glibc, GDB read DT_DEBUG from gdbserver too early?
- From: don dot lee at sunplusct dot com
- To: Doug Evans <dje at google dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 16 Sep 2009 18:04:30 +0800
- Subject: Re: Under Linux/Glibc, GDB read DT_DEBUG from gdbserver too early?
Doug Evans <dje@google.com> 写于 2009-09-15 23:04:34:
>
> gdb 6.6 is pretty old, I'm not sure how much support you can get.
>
> Are you doing something wrong? I'm not sure but I think the answer is
> "not necessarily".
>
> On amd64-linux, gdb (cvs head, and I'm guessing 6.8) will actually
> read .dynamic multiple times during program start up, before the
> dynamic linker has run. Eventually the dynamic linker runs, and gdb
> gets the desired info.
gdb 6.6 works similar. But I didn't know from where dynamic linker begins
to run, i.e. after gdb doing foo, dynamic linker begins to run
>
> The only thing I can suggest (sorry!) is to dig deeper.
Digging :-)
Thank you anyway,
don