dwarf2 symtab bfd_section corrupt?
Andrew Cagney
ac131313@redhat.com
Sun Mar 2 17:52:00 GMT 2003
Hello,
Both the symtab and psymtab objects contain the common entry `asection
*bfd_section'. One field of the BFD section is it's `struct bfd *owner'
- the object file that contains the section.
The new dwarf2loc stuff extends the symtab object adding a `struct
objfile *objfile' field. An objfile contains the field `struct bfd *obfd'.
Hmm, looks like redundant information. Why not just point the
symtab/psymtab at the obj_section?
The attached patch adds an assert to check the theory out. It fails.
The bfd_section ends up pointing at the file "libc.so"!
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb/attachments/20030302/442d7880/attachment.ksh>
More information about the Gdb
mailing list