diff options
| author | Ed Maste <emaste@freebsd.org> | 2014-04-09 16:39:30 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2014-04-09 16:39:30 +0000 |
| commit | 5b031ebc70b983c288b0da335362eb28d374aa21 (patch) | |
| tree | 30844809af22eec7370c9004d37ebda7f7fecb8d | |
| parent | 3bb6073919ff3a93798da24853915c3ad33cc9f6 (diff) | |
| download | bcm5719-llvm-5b031ebc70b983c288b0da335362eb28d374aa21.tar.gz bcm5719-llvm-5b031ebc70b983c288b0da335362eb28d374aa21.zip | |
Use the default TID format in curses UI
TIDs are conventionally shown as decimal values on FreeBSD and Linux.
Thus, use the ${thread.id%tid} format string to display the thread ID,
instead of a fixed hex format.
llvm.org/pr19380
llvm-svn: 205912
| -rw-r--r-- | lldb/source/Core/IOHandler.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index b796f43ad1b..e6339115b1a 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -4495,9 +4495,13 @@ public: if (StateIsStoppedState(state, true)) { - window.MoveCursor (40, 0); - if (thread) - window.Printf ("Thread: 0x%4.4" PRIx64, thread->GetID()); + StreamString strm; + const char *format = "Thread: ${thread.id%tid}"; + if (thread && Debugger::FormatPrompt (format, NULL, &exe_ctx, NULL, strm)) + { + window.MoveCursor (40, 0); + window.PutCStringTruncated(strm.GetString().c_str(), 1); + } window.MoveCursor (60, 0); if (frame) |

