cope with varying prelink base addresses

Eli Zaretskii eliz@gnu.org
Wed Feb 8 06:25:00 GMT 2006


> From: Alexandre Oliva <aoliva@redhat.com>
> Date: Wed, 08 Feb 2006 03:18:01 -0200
> 
> The only piece of information available for this that I could find was
> the address of the dynamic table in the dynamic loader data
> structures.  The heuristics I used was to check whether the dynamic
> table address changed but remained at the same position within a
> page.  If so, I assume the difference is caused by prelinking, and
> then I adjust the load_addr that gdb is going to use for that binary.
> Otherwise, it will face the same problems you're expected to face when
> debugging a core file using a different binary.

Would it make sense to add a user command/variable that will tell GDB
the difference between the two base addresses?  I guess it would be a
good idea if the user has a way of finding out this number by some
means that are unavailable to GDB (e.g., by gaining access to the
other machine or talking to someone sitting in front of it).

WDYT?



More information about the Gdb-patches mailing list