summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-09-24 01:37:21 +0000
committerGreg Clayton <gclayton@apple.com>2011-09-24 01:37:21 +0000
commitf644ddf4296ab0d1b1b1bf242086147a119431b4 (patch)
treec8a384eeb1ca116a28fef8f549db65acb82f2f93 /lldb/source/API
parente96273e75dd75f8bf5e05a94cabeaa670c88619d (diff)
downloadbcm5719-llvm-f644ddf4296ab0d1b1b1bf242086147a119431b4.tar.gz
bcm5719-llvm-f644ddf4296ab0d1b1b1bf242086147a119431b4.zip
Fixed build issues after recent checkin.
Added the ability to get the name of the SBSection. llvm-svn: 140444
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBBreakpointLocation.cpp1
-rw-r--r--lldb/source/API/SBSection.cpp9
2 files changed, 10 insertions, 0 deletions
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