This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Final separate debug info patch
- From: Jim Blandy <jimb at redhat dot com>
- To: Alexander Larsson <alexl at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: 24 Nov 2002 23:10:07 -0500
- Subject: Re: Final separate debug info patch
- References: <Pine.LNX.4.44.0210090447290.29225-200000@devserv.devel.redhat.com>
Just to give some status on this patch:
The patch as posted doesn't properly handle the case where the
executable file has changed since the last 'run' command, and GDB
needs to re-read the symbols. It does get rid of the out-of-date
separated objfile, but it doesn't read in the new one. You may have
said this in one of your earlier posts, but I'll guess now that the
omission was deliberate: this is kind of a pain to do.
I think the separated debug info should use the same section offset
table that its parent objfile does --- that's the table that
reread_symbols would have used if the debug info weren't separated,
anyway. I've got a patch written, but not working, that does this; it
involved some interface changes to pass the information down to where
it's needed, so it's larger than one would like. I'll post it as soon
as it seems to work; it'll need to be broken into a few separate
patches before it can really be reviewed and committed.