From 05faeb71350f65bbe8e41b68b22345e992e9a497 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 7 Oct 2010 04:19:01 +0000 Subject: Cleaned up the SWIG stuff so all includes happen as they should, no pulling tricks to get types to resolve. I did this by correctly including the correct files: stdint.h and all lldb-*.h files first before including the API files. This allowed me to remove all of the hacks that were in the lldb.swig file and it also allows all of the #defines in lldb-defines.h and enumerations in lldb-enumerations.h to appear in the lldb.py module. This will make the python script code a lot more readable. Cleaned up the "process launch" command to not execute a "process continue" command, it now just does what it should have with the internal API calls instead of executing another command line command. Made the lldb_private::Process set the state to launching and attaching if WillLaunch/WillAttach return no error respectively. llvm-svn: 115902 --- lldb/source/API/SBBreakpoint.cpp | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'lldb/source/API/SBBreakpoint.cpp') diff --git a/lldb/source/API/SBBreakpoint.cpp b/lldb/source/API/SBBreakpoint.cpp index 70a70458b36..8f0545310b1 100644 --- a/lldb/source/API/SBBreakpoint.cpp +++ b/lldb/source/API/SBBreakpoint.cpp @@ -323,28 +323,19 @@ SBBreakpoint::GetNumLocations() const } bool -SBBreakpoint::GetDescription (const char *description_level, SBStream &description) +SBBreakpoint::GetDescription (SBStream &s) { if (m_opaque_sp) { - DescriptionLevel level; - if (strcmp (description_level, "brief") == 0) - level = eDescriptionLevelBrief; - else if (strcmp (description_level, "full") == 0) - level = eDescriptionLevelFull; - else if (strcmp (description_level, "verbose") == 0) - level = eDescriptionLevelVerbose; - else - level = eDescriptionLevelBrief; - - description.ref(); - m_opaque_sp->GetDescription (description.get(), level); - description.get()->EOL(); + s.Printf("SBBreakpoint: id = %i, ", m_opaque_sp->GetID()); + m_opaque_sp->GetResolverDescription (s.get()); + m_opaque_sp->GetFilterDescription (s.get()); + const size_t num_locations = m_opaque_sp->GetNumLocations (); + s.Printf(", locations = %zu", num_locations); + return true; } - else - description.Printf ("No value"); - - return true; + s.Printf ("No value"); + return false; } bool -- cgit v1.2.3