File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,9 @@ class LLDB_API SBModule {
290290 lldb::SBAddress GetObjectFileHeaderAddress () const ;
291291 lldb::SBAddress GetObjectFileEntryPointAddress () const ;
292292
293+ // / Get if the symbol file for this module is loaded.
294+ bool IsDebugInfoLoaded () const ;
295+
293296 // / Get the number of global modules.
294297 static uint32_t GetNumberAllocatedModules ();
295298
Original file line number Diff line number Diff line change @@ -659,6 +659,18 @@ lldb::SBAddress SBModule::GetObjectFileEntryPointAddress() const {
659659 return sb_addr;
660660}
661661
662+ bool SBModule::IsDebugInfoLoaded () const {
663+ LLDB_INSTRUMENT_VA (this );
664+
665+ ModuleSP module_sp (GetSP ());
666+ if (module_sp) {
667+ SymbolFile *sym_file = module_sp->GetSymbolFile (/* create=*/ false );
668+ return sym_file && sym_file->GetLoadDebugInfoEnabled ();
669+ }
670+
671+ return false ;
672+ }
673+
662674uint32_t SBModule::GetNumberAllocatedModules () {
663675 LLDB_INSTRUMENT ();
664676
You can’t perform that action at this time.
0 commit comments