File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,9 @@ class LLDB_API SBModule {
296
296
// / Remove any global modules which are no longer needed.
297
297
static void GarbageCollectAllocatedModules ();
298
298
299
+ // / Return the name of the module.
300
+ const char *GetName () const ;
301
+
299
302
private:
300
303
friend class SBAddress ;
301
304
friend class SBFrame ;
Original file line number Diff line number Diff line change @@ -671,3 +671,11 @@ void SBModule::GarbageCollectAllocatedModules() {
671
671
const bool mandatory = false ;
672
672
ModuleList::RemoveOrphanSharedModules (mandatory);
673
673
}
674
+
675
+ const char *SBModule::GetName () const {
676
+ LLDB_INSTRUMENT_VA (this );
677
+ if (!m_opaque_sp) {
678
+ return nullptr ;
679
+ }
680
+ return m_opaque_sp->GetObjectName ().AsCString ();
681
+ }
You can’t perform that action at this time.
0 commit comments