summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-07 04:19:01 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-07 04:19:01 +0000
commit05faeb71350f65bbe8e41b68b22345e992e9a497 (patch)
treee01f0087d0afd0f1050c255be597fcbdcbfe7c49 /lldb/source/API/SBThread.cpp
parent1b468683c273ca438345381fa89d52355bb04a80 (diff)
downloadbcm5719-llvm-05faeb71350f65bbe8e41b68b22345e992e9a497.tar.gz
bcm5719-llvm-05faeb71350f65bbe8e41b68b22345e992e9a497.zip
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
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index 0489dc5605d..006efc79132 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -452,7 +452,10 @@ bool
SBThread::GetDescription (SBStream &description)
{
if (m_opaque_sp)
- m_opaque_sp->DumpUsingSettingsFormat (description.ref(), 0);
+ {
+ StreamString strm;
+ description.Printf("SBThread: tid = 0x%4.4x", m_opaque_sp->GetID());
+ }
else
description.Printf ("No value");
OpenPOWER on IntegriCloud