Changeset View
Changeset View
Standalone View
Standalone View
source/Core/Module.cpp
Show First 20 Lines • Show All 1,041 Lines • ▼ Show 20 Lines | Module::GetSymbolVendor (bool can_create, lldb_private::Stream *feedback_strm) | ||||
if (m_did_load_symbol_vendor == false && can_create) | if (m_did_load_symbol_vendor == false && can_create) | ||||
{ | { | ||||
ObjectFile *obj_file = GetObjectFile (); | ObjectFile *obj_file = GetObjectFile (); | ||||
if (obj_file != NULL) | if (obj_file != NULL) | ||||
{ | { | ||||
Timer scoped_timer(__PRETTY_FUNCTION__, __PRETTY_FUNCTION__); | Timer scoped_timer(__PRETTY_FUNCTION__, __PRETTY_FUNCTION__); | ||||
m_symfile_ap.reset(SymbolVendor::FindPlugin(shared_from_this(), feedback_strm)); | m_symfile_ap.reset(SymbolVendor::FindPlugin(shared_from_this(), feedback_strm)); | ||||
m_did_load_symbol_vendor = true; | m_did_load_symbol_vendor = true; | ||||
// Update symbol file specification. | |||||
if (m_symfile_ap) | |||||
{ | |||||
SymbolFile *symbol_file = m_symfile_ap->GetSymbolFile(); | |||||
if (symbol_file) | |||||
{ | |||||
ObjectFile *obj_file = symbol_file->GetObjectFile(); | |||||
if (obj_file) | |||||
m_symfile_spec = obj_file->GetFileSpec(); | |||||
} | |||||
} | |||||
} | } | ||||
} | } | ||||
return m_symfile_ap.get(); | return m_symfile_ap.get(); | ||||
} | } | ||||
void | void | ||||
Module::SetFileSpecAndObjectName (const FileSpec &file, const ConstString &object_name) | Module::SetFileSpecAndObjectName (const FileSpec &file, const ConstString &object_name) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 777 Lines • Show Last 20 Lines |