This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]