SBThread::GetDescription should use the Thread format instead of making up
authorJim Ingham <jingham@apple.com>
Wed, 28 Jan 2015 01:18:01 +0000 (01:18 +0000)
committerJim Ingham <jingham@apple.com>
Wed, 28 Jan 2015 01:18:01 +0000 (01:18 +0000)
some format of its own.

llvm-svn: 227285

lldb/source/API/SBThread.cpp

index 6524d10..9fe0d02 100644 (file)
@@ -1491,7 +1491,8 @@ SBThread::GetDescription (SBStream &description) const
     ExecutionContext exe_ctx (m_opaque_sp.get());
     if (exe_ctx.HasThreadScope())
     {
-        strm.Printf("SBThread: tid = 0x%4.4" PRIx64, exe_ctx.GetThreadPtr()->GetID());
+        exe_ctx.GetThreadPtr()->DumpUsingSettingsFormat(strm, LLDB_INVALID_THREAD_ID);
+        //strm.Printf("SBThread: tid = 0x%4.4" PRIx64, exe_ctx.GetThreadPtr()->GetID());
     }
     else
         strm.PutCString ("No value");