[lldb-dev] thread list format
Michael Sartain
mikesart at gmail.com
Mon Jul 29 13:38:01 PDT 2013
I've seen this asked by Ed before, but hadn't seen it answered: Is there a
reason for the single single quote in the default thread-format?
(lldb) thread list
Process 29603 stopped
* thread #1: tid = 29603, 0x000000000040113f blah`main(argc=1,
argv=0x00007fff71d34f18) + 495 at blah.cpp:71, name = 'mainthrd, stop
reason = breakpoint 2.1
thread #2: tid = 29766, 0x00007f282ba7084d libc.so.6`__nanosleep + 45 at
syscall-template.S:82, name = 'thread_0
thread #3: tid = 29767, 0x00007f282ba7084d libc.so.6`__nanosleep + 45 at
syscall-template.S:82, name = 'thread_1
It's defined here in Debugger.cpp:
102 #define DEFAULT_THREAD_FORMAT "thread #${thread.index}: tid = ${
thread.id}"\
103 "{, ${frame.pc}}"\
104 MODULE_WITH_FUNC\
105 FILE_AND_LINE\
106 "{, name = '${thread.name}}"\
107 "{, queue = '${thread.queue}}"\
108 "{, stop reason = ${thread.stop-reason}}"\
109 "{\\nReturn value: ${thread.return-value}}"\
110 "\\n"
(lldb) settings show thread-format
thread-format (string) = "thread #${thread.index}: tid = ${thread.id}{,
${frame.pc}}{
${module.file.basename}{`${function.name-with-args}${function.pc-offset}}}{
at ${line.file.basename}:${line.number}}{, name = '${thread.name}}{, queue
= '${thread.queue}}{, stop reason = ${thread.stop-reason}}{\nReturn value:
${thread.return-value}}\n"
I'm assuming this isn't deliberate and we can add the missing quote?
Hopefully? :)
Thanks!
-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130729/b2457e6f/attachment.html>
More information about the lldb-dev
mailing list