[Lldb-commits] [lldb] r177966 - <rdar://problem/13502196>
Greg Clayton
gclayton at apple.com
Mon Mar 25 18:51:59 PDT 2013
Author: gclayton
Date: Mon Mar 25 20:51:59 2013
New Revision: 177966
URL: http://llvm.org/viewvc/llvm-project?rev=177966&view=rev
Log:
<rdar://problem/13502196>
We have the tag when figuring out the fully qualified name, append a suitable name for other types of tags when no name is available.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp?rev=177966&r1=177965&r2=177966&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.cpp Mon Mar 25 20:51:59 2013
@@ -40,7 +40,18 @@ DWARFDeclContext::GetQualifiedName () co
if (pos != begin)
m_qualified_name.append("::");
if (pos->name == NULL)
- m_qualified_name.append ("(anonymous namespace)");
+ {
+ if (pos->tag == DW_TAG_namespace)
+ m_qualified_name.append ("(anonymous namespace)");
+ else if (pos->tag == DW_TAG_class_type)
+ m_qualified_name.append ("(anonymous class)");
+ else if (pos->tag == DW_TAG_structure_type)
+ m_qualified_name.append ("(anonymous struct)");
+ else if (pos->tag == DW_TAG_union_type)
+ m_qualified_name.append ("(anonymous union)");
+ else
+ m_qualified_name.append ("(anonymous)");
+ }
else
m_qualified_name.append(pos->name);
}
More information about the lldb-commits
mailing list