This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Patch: DWARF2 location lists vs. shared libraries
- From: Jim Blandy <jimb at redhat dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Bryce McKinlay <mckinlay at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: 05 May 2004 00:55:00 -0500
- Subject: Re: Patch: DWARF2 location lists vs. shared libraries
- References: <40983940.3050003@redhat.com><20040505040344.GA28793@nevyn.them.org>
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.