File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include < cstdlib>
10
+ #include < iostream>
10
11
11
12
#include " DWARFASTParser.h"
12
13
#include " DWARFASTParserClang.h"
@@ -1621,6 +1622,15 @@ DWARFASTParserClang::GetCPlusPlusQualifiedName(const DWARFDIE &die) {
1621
1622
const char *name = die.GetName ();
1622
1623
if (!name)
1623
1624
return " " ;
1625
+ static int indent = 0 ;
1626
+ std::cerr << std::string (indent, ' ' ) << " starting qualified name for: " << name << ' \n ' ;
1627
+ auto &FS = die.GetCU ()->GetSymbolFileDWARF ().GetObjectFile ()->GetFileSpec ();
1628
+ std::string Directory = FS.GetDirectory ().AsCString (" " );
1629
+ std::cerr << std::string (indent, ' ' )
1630
+ << Directory.substr (std::min (59ul , Directory.size ())) << ' /'
1631
+ << FS.GetFilename ().AsCString (" " ) << ' :' << std::hex
1632
+ << die.GetDIE ()->GetOffset () << ' \n ' ;
1633
+ ++indent;
1624
1634
std::string qualified_name;
1625
1635
DWARFDIE parent_decl_ctx_die = die.GetParentDeclContextDIE ();
1626
1636
// TODO: change this to get the correct decl context parent....
@@ -1666,6 +1676,9 @@ DWARFASTParserClang::GetCPlusPlusQualifiedName(const DWARFDIE &die) {
1666
1676
qualified_name.append (name);
1667
1677
qualified_name.append (GetDIEClassTemplateParams (die).AsCString (" " ));
1668
1678
1679
+ --indent;
1680
+ std::cerr << std::string (indent, ' ' ) << " computed qualified name: " << qualified_name << ' \n ' ;
1681
+
1669
1682
return qualified_name;
1670
1683
}
1671
1684
You can’t perform that action at this time.
0 commit comments