This is the mail archive of the gdb-patches@sourceware.org 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] |
Other format: | [Raw text] |
That's part of it. Also, I don't think the check for DW_AT_external tests what we want (which is what I'm trying to pin down - what is the desired property?).
1. If the variable is declared in the namespace scope, but defined outside, then a second defining DIE is emitted that refers to the declaration DIE using DW_AT_specification. In this case the declaration DIE's namespace is used.
... The code above seems to cheat a tiny bit because it unconditionally returns 1 in this case, whereas it should perhaps recurse.
Recursing's a good idea. I hadn't thought of that.
Attachment:
physname-dwarf2read.c-revised.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |