[Daniel Berlin <dan@cgsoftware.com>] [PATCH] Namespace support for DWARF2, take 2

Daniel Berlin dan@cgsoftware.com
Thu Jul 5 09:23:00 GMT 2001


Jim, you asked me to forward the gcc dwarf2 namespace patch, here's the
latest.

If you want to hack up the old reader to try to support namespaces, or
even ignore them, you have to start by copying the find_pc_bounds
function in the new dwarf2 reader, and using it in the right places.
Otherwise, you'll end up with errors about blocks being outside the
bounds of the symtab, etc, because namespaces are scopes without pc
bounds, and thus, we need to look through their children when trying
to determine the upper/lower pc bounds for a compile unit.





More information about the Gdb-patches mailing list