This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address


On Thu, Apr 17, 2008 at 11:31:18PM +0200, Ulrich Weigand wrote:
> Yes, that's on my to-do list anyway ...
> 
> However, even that would not fix the same issue with core files
> (if prelink changed a library between core file generation and 
> use in GDB).

Drat.  And even if that bit is in the core file (likely on at least
some vendor kernels; program headers are in the same page as the
build-id note) we would not know where to look for it.

I don't want to revert the patch, since it fixes a nasty breakage
if you connect to a program when it has just started running but
has gone a few instructions, i.e. the library list is not filled in
yet but the PC is not the dynamic linker entry point.  Is there
really no way to differentiate these two cases?

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]