The thread name missing end quote is just an error and should be fixed. Looks 
like one is missing for the thread queue as well.

Greg

On Jul 29, 2013, at 1:38 PM, Michael Sartain <[email protected]> wrote:

> 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
> _______________________________________________
> lldb-dev mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to