Patch: DWARF2 location lists vs. shared libraries
Jim Blandy
jimb@redhat.com
Wed May 5 05:59:00 GMT 2004
Daniel Jacobowitz <drow@false.org> writes:
> On Tue, May 04, 2004 at 08:45:52PM -0400, Bryce McKinlay wrote:
> > 2004-05-04 Bryce McKinlay <mckinlay@redhat.com>
> >
> > * dwarf2read.c (dwarf2_symbol_mark_computed): Use ANOFFSET to
> > adjust baton's base_address for shared libraries.
>
> I spoke briefly to Bryce about this (on IRC).
>
> I think the right thing to do would be to add the offset when
> searching, rather than when saving. This will help us with relocating
> objfiles, which I think would be good to support - that way we can
> cache debug info for unchanged shared libraries across runs.
>
> Does this make sense to others? I'll try to write the patch tomorrow
> or Thursday.
Yes, that's the approach I'd prefer, too. I wish we could apply it to
symbols as well, but I don't see how to pull that off.
More information about the Gdb-patches
mailing list