[Lldb-commits] [lldb] r140444 - in /lldb/trunk: include/lldb/API/SBSection.h scripts/Python/interface/SBSection.i source/API/SBBreakpointLocation.cpp source/API/SBSection.cpp

Greg Clayton gclayton at apple.com
Fri Sep 23 18:37:21 PDT 2011


Author: gclayton
Date: Fri Sep 23 20:37:21 2011
New Revision: 140444

URL: http://llvm.org/viewvc/llvm-project?rev=140444&view=rev
Log:
Fixed build issues after recent checkin.

Added the ability to get the name of the SBSection.


Modified:
    lldb/trunk/include/lldb/API/SBSection.h
    lldb/trunk/scripts/Python/interface/SBSection.i
    lldb/trunk/source/API/SBBreakpointLocation.cpp
    lldb/trunk/source/API/SBSection.cpp

Modified: lldb/trunk/include/lldb/API/SBSection.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBSection.h?rev=140444&r1=140443&r2=140444&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBSection.h (original)
+++ lldb/trunk/include/lldb/API/SBSection.h Fri Sep 23 20:37:21 2011
@@ -32,6 +32,9 @@
     bool
     IsValid () const;
 
+    const char *
+    GetName ();
+    
     lldb::SBSection
     FindSubSection (const char *sect_name);
 

Modified: lldb/trunk/scripts/Python/interface/SBSection.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBSection.i?rev=140444&r1=140443&r2=140444&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBSection.i (original)
+++ lldb/trunk/scripts/Python/interface/SBSection.i Fri Sep 23 20:37:21 2011
@@ -26,6 +26,9 @@
     bool
     IsValid () const;
 
+    const char *
+    GetName ();
+
     lldb::SBSection
     FindSubSection (const char *sect_name);
 

Modified: lldb/trunk/source/API/SBBreakpointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBBreakpointLocation.cpp?rev=140444&r1=140443&r2=140444&view=diff
==============================================================================
--- lldb/trunk/source/API/SBBreakpointLocation.cpp (original)
+++ lldb/trunk/source/API/SBBreakpointLocation.cpp Fri Sep 23 20:37:21 2011
@@ -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"
 

Modified: lldb/trunk/source/API/SBSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBSection.cpp?rev=140444&r1=140443&r2=140444&view=diff
==============================================================================
--- lldb/trunk/source/API/SBSection.cpp (original)
+++ lldb/trunk/source/API/SBSection.cpp Fri Sep 23 20:37:21 2011
@@ -128,6 +128,15 @@
     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)
 {





More information about the lldb-commits mailing list