On Oct 5, 2012, at 2:43 PM, Cary Coutant wrote:
>>> It seems to me that there are cases where we just want to emit the
>>> class for the context info (like a namespace, which doesn't have to be
>>> complete everywhere). Is there a way to tell the debugger that this
>>> class declaration is incomplete and that it should look elsewhere for
>>> a full definition?
>>
>> I think DW_AT_declaration would be appropriate.
>
> Yeah, that's what I was thinking. I was going to check with dje to see
> if GDB would do the right thing in that case.
>
> -cary
There certainly is a fair amount of code in dwarf2read.c in gdb to handle
DW_AT_declaration and do things differently for declarations.
Should I rework this patch to use that mechanism instead? If so, how? If the
class is marked only by prune_unused_types_mark visiting it as a parent, but
hasn't been marked by ??? that visits all its children, then emit it with a
DW_AT_declaration marking?
paul