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"
@@ -1556,6 +1557,15 @@ DWARFASTParserClang::GetCPlusPlusQualifiedName(const DWARFDIE &die) {
1556
1557
const char *name = die.GetName ();
1557
1558
if (!name)
1558
1559
return " " ;
1560
+ static int indent = 0 ;
1561
+ std::cerr << std::string (indent, ' ' ) << " starting qualified name for: " << name << ' \n ' ;
1562
+ auto &FS = die.GetCU ()->GetSymbolFileDWARF ().GetObjectFile ()->GetFileSpec ();
1563
+ std::string Directory = FS.GetDirectory ().AsCString (" " );
1564
+ std::cerr << std::string (indent, ' ' )
1565
+ << Directory.substr (std::min (59ul , Directory.size ())) << ' /'
1566
+ << FS.GetFilename ().AsCString (" " ) << ' :' << std::hex
1567
+ << die.GetDIE ()->GetOffset () << ' \n ' ;
1568
+ ++indent;
1559
1569
std::string qualified_name;
1560
1570
DWARFDIE parent_decl_ctx_die = die.GetParentDeclContextDIE ();
1561
1571
// TODO: change this to get the correct decl context parent....
@@ -1601,6 +1611,9 @@ DWARFASTParserClang::GetCPlusPlusQualifiedName(const DWARFDIE &die) {
1601
1611
qualified_name.append (name);
1602
1612
qualified_name.append (GetDIEClassTemplateParams (die).AsCString (" " ));
1603
1613
1614
+ --indent;
1615
+ std::cerr << std::string (indent, ' ' ) << " computed qualified name: " << qualified_name << ' \n ' ;
1616
+
1604
1617
return qualified_name;
1605
1618
}
1606
1619
You can’t perform that action at this time.
0 commit comments