summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/API/SBSection.h3
-rw-r--r--lldb/scripts/Python/interface/SBSection.i3
-rw-r--r--lldb/source/API/SBBreakpointLocation.cpp1
-rw-r--r--lldb/source/API/SBSection.cpp9
4 files changed, 16 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBSection.h b/lldb/include/lldb/API/SBSection.h
index a71086b74ce..04a3815446c 100644
--- a/lldb/include/lldb/API/SBSection.h
+++ b/lldb/include/lldb/API/SBSection.h
@@ -32,6 +32,9 @@ public:
bool
IsValid () const;
+ const char *
+ GetName ();
+
lldb::SBSection
FindSubSection (const char *sect_name);
diff --git a/lldb/scripts/Python/interface/SBSection.i b/lldb/scripts/Python/interface/SBSection.i
index 27b329e7855..a206b34b3cf 100644
--- a/lldb/scripts/Python/interface/SBSection.i
+++ b/lldb/scripts/Python/interface/SBSection.i
@@ -26,6 +26,9 @@ public:
bool
IsValid () const;
+ const char *
+ GetName ();
+
lldb::SBSection
FindSubSection (const char *sect_name);
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp
index c5a2def9322..20e4ac870d4 100644
--- a/lldb/source/API/SBBreakpointLocation.cpp
+++ b/lldb/source/API/SBBreakpointLocation.cpp
@@ -9,6 +9,7 @@
#include "lldb/API/SBBreakpointLocation.h"
#include "lldb/API/SBDefines.h"
+#include "lldb/API/SBAddress.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBStream.h"
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp
index 6d665962465..2636dd02136 100644
--- a/lldb/source/API/SBSection.cpp
+++ b/lldb/source/API/SBSection.cpp
@@ -128,6 +128,15 @@ SBSection::IsValid () const
return m_opaque_ap.get() != NULL && m_opaque_ap->IsValid();
}
+const char *
+SBSection::GetName ()
+{
+ if (IsValid())
+ return m_opaque_ap->GetSection()->GetName().GetCString();
+ return NULL;
+}
+
+
lldb::SBSection
SBSection::FindSubSection (const char *sect_name)
{
OpenPOWER on IntegriCloud