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

Jim Blandy jimb@zwingli.cygnus.com
Fri Jul 6 09:03:00 GMT 2001


Daniel Berlin <dan@cgsoftware.com> writes:
> Jim, you asked me to forward the gcc dwarf2 namespace patch, here's the
> latest.

Cool, thanks.  I'll try it out.

> 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.

Okay.  It looks like scan_partial_symbols actually does more than just
skim the top level of dies (to retrieve enumeration constants, for
example), so that seems doable.  But I'll look at your find_pc_bounds
function, too.



More information about the Gdb-patches mailing list