This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [Daniel Berlin <dan@cgsoftware.com>] [PATCH] Namespace support for DWARF2, take 2
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: [Daniel Berlin <dan@cgsoftware.com>] [PATCH] Namespace support for DWARF2, take 2
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 06 Jul 2001 11:04:34 -0500
- Cc: gdb-patches at sources dot redhat dot com
- References: <87sngbtkdw.fsf@cgsoftware.com>
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.