This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Improve support for "debugging" unlinked objects
On Fri, Jun 10, 2005 at 01:10:12PM -0700, Michael Snyder wrote:
> One suggestion -- could you use the section's file offset
> in place of a "random location"? I'm guessing it's available
> from bfd, and it seems to me that it's guaranteed to be unique.
That sounded like a great idea, but unfortunately, it's not available
from BFD. It's available for ELF files in the ELF-private headers, but
that seems nasty - nothing else in the patch is actually ELF-specific.
I believe the idea is that BFD sections don't necessarily come from a
file; for instance some of the "sections" in a core file's bfd are
synthesized from data in the notes section.
I've retested the patch and checked it in.
--
Daniel Jacobowitz
CodeSourcery, LLC