This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: cope with varying prelink base addresses
On Feb 8, 2006, Eli Zaretskii <eliz@gnu.org> wrote:
> Would it make sense to add a user command/variable that will tell GDB
> the difference between the two base addresses?
Err... Not really. Unless you mean some per-dynamic-object setting.
And I really think it's overkill.
Perhaps it migth make sense to ask the user what to do whenever we
detect an inconsistency between the expected address of l_ld and the
address it is on, offering a reasonable default, but even that is
probably overkill, and it might change the behavior if l_ld doesn't
mean what we think it does.
Besides, we already sort-of have the means to do it. GDB has commands
to set the addresses of individual sections. It would be a pain, but
it can be done.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Secretary for FSF Latin America http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}