File tree 2 files changed +15
-0
lines changed 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 {
290
290
lldb::SBAddress GetObjectFileHeaderAddress () const ;
291
291
lldb::SBAddress GetObjectFileEntryPointAddress () const ;
292
292
293
+ // / Get if the symbol file for this module is loaded.
294
+ bool IsDebugInfoLoaded () const ;
295
+
293
296
// / Get the number of global modules.
294
297
static uint32_t GetNumberAllocatedModules ();
295
298
Original file line number Diff line number Diff line change @@ -659,6 +659,18 @@ lldb::SBAddress SBModule::GetObjectFileEntryPointAddress() const {
659
659
return sb_addr;
660
660
}
661
661
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
+
662
674
uint32_t SBModule::GetNumberAllocatedModules () {
663
675
LLDB_INSTRUMENT ();
664
676
You can’t perform that action at this time.
0 commit comments