Changeset View
Changeset View
Standalone View
Standalone View
source/Symbol/SymbolVendor.cpp
Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | if (module_sp) { | ||||
std::lock_guard<std::recursive_mutex> guard(module_sp->GetMutex()); | std::lock_guard<std::recursive_mutex> guard(module_sp->GetMutex()); | ||||
bool show_context = false; | bool show_context = false; | ||||
s->Printf("%p: ", static_cast<void *>(this)); | s->Printf("%p: ", static_cast<void *>(this)); | ||||
s->Indent(); | s->Indent(); | ||||
s->PutCString("SymbolVendor"); | s->PutCString("SymbolVendor"); | ||||
if (m_sym_file_ap.get()) { | if (m_sym_file_ap.get()) { | ||||
*s << " " << m_sym_file_ap->GetPluginName(); | |||||
ObjectFile *objfile = m_sym_file_ap->GetObjectFile(); | ObjectFile *objfile = m_sym_file_ap->GetObjectFile(); | ||||
if (objfile) { | if (objfile) { | ||||
const FileSpec &objfile_file_spec = objfile->GetFileSpec(); | const FileSpec &objfile_file_spec = objfile->GetFileSpec(); | ||||
if (objfile_file_spec) { | if (objfile_file_spec) { | ||||
s->PutCString(" ("); | s->PutCString(" ("); | ||||
objfile_file_spec.Dump(s); | objfile_file_spec.Dump(s); | ||||
s->PutChar(')'); | s->PutChar(')'); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
s->EOL(); | s->EOL(); | ||||
if (m_sym_file_ap) | if (m_sym_file_ap) | ||||
m_sym_file_ap->Dump(*s); | m_sym_file_ap->Dump(*s); | ||||
s->IndentMore(); | s->IndentMore(); | ||||
m_type_list.Dump(s, show_context); | m_type_list.Dump(s, show_context); | ||||
CompileUnitConstIter cu_pos, cu_end; | CompileUnitConstIter cu_pos, cu_end; | ||||
cu_end = m_compile_units.end(); | cu_end = m_compile_units.end(); | ||||
for (cu_pos = m_compile_units.begin(); cu_pos != cu_end; ++cu_pos) { | for (cu_pos = m_compile_units.begin(); cu_pos != cu_end; ++cu_pos) { | ||||
// We currently only dump the compile units that have been parsed | // We currently only dump the compile units that have been parsed | ||||
if (cu_pos->get()) | if (cu_pos->get()) | ||||
(*cu_pos)->Dump(s, show_context); | (*cu_pos)->Dump(s, show_context); | ||||
} | } | ||||
if (Symtab *symtab = GetSymtab()) | |||||
symtab->Dump(s, nullptr, eSortOrderNone); | |||||
s->IndentLess(); | s->IndentLess(); | ||||
} | } | ||||
} | } | ||||
CompUnitSP SymbolVendor::GetCompileUnitAtIndex(size_t idx) { | CompUnitSP SymbolVendor::GetCompileUnitAtIndex(size_t idx) { | ||||
CompUnitSP cu_sp; | CompUnitSP cu_sp; | ||||
ModuleSP module_sp(GetModule()); | ModuleSP module_sp(GetModule()); | ||||
if (module_sp) { | if (module_sp) { | ||||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |