[lldb-dev] [Bug 16577] New: lldb doesn't display inferior thread names during 'thread list'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 9 10:21:14 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16577

            Bug ID: 16577
           Summary: lldb doesn't display inferior thread names during
                    'thread list'
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: matt.kopec at intel.com
    Classification: Unclassified

When debugging an inferior, it can be useful to know the inferior thread names.

For example, when debugging lldb with gdb, we get this:

(gdb) info threads
  Id   Target Id         Frame 
  9    Thread 0x7fa39d9e2700 (LWP 31579) "input" 0x00007fa39ee42023 in select
()
   from /lib/x86_64-linux-gnu/libc.so.6
  8    Thread 0x7fa39d1e1700 (LWP 31580) "editline" 0x00007fa39ee42023 in
select ()
   from /lib/x86_64-linux-gnu/libc.so.6
  7    Thread 0x7fa39c9e0700 (LWP 31581) "editline_output" 0x00007fa39ee42023
in select ()
   from /lib/x86_64-linux-gnu/libc.so.6
  6    Thread 0x7fa38ffff700 (LWP 31582) "commandline_io" 0x00007fa39fd43d2d in
read ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
  5    Thread 0x7fa38f7fe700 (LWP 31597) "operation" 0x00007fa39ee3d303 in poll
()
   from /lib/x86_64-linux-gnu/libc.so.6
  4    Thread 0x7fa38effd700 (LWP 31599) "wait4(pid=31598" 0x00007fa39fd4488d
in waitpid ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
  3    Thread 0x7fa38e7fc700 (LWP 31600) "stdio" 0x00007fa39ee42023 in select
()
   from /lib/x86_64-linux-gnu/libc.so.6
  2    Thread 0x7fa38dffb700 (LWP 31601) "internal-state" 0x00007fa39fd40d84 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
* 1    Thread 0x7fa3a4dab740 (LWP 31578) "main-thread" 0x00007fa39fd40d84 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) 

When debugging lldb with lldb, we get this:

(lldb) thread list
Process 31578 stopped
* thread #1: tid = 0x7b5a, 0x00007fa39fd40d84
libpthread.so.0`pthread_cond_wait@@GLIBC_2.3.2 + 196, stop reason = trace
  thread #2: tid = 0x7b5b, 0x00007fa39ee42023 libc.so.6`select + 51
  thread #3: tid = 0x7b5c, 0x00007fa39ee42023 libc.so.6`select + 51
  thread #4: tid = 0x7b5d, 0x00007fa39ee42023 libc.so.6`select + 51
  thread #5: tid = 0x7b5e, 0x00007fa39fd43d2d libpthread.so.0
  thread #6: tid = 0x7b6d, 0x00007fa39ee3d303 libc.so.6`poll + 83
  thread #7: tid = 0x7b6f, 0x00007fa39fd4488d libpthread.so.0`waitpid + 93
  thread #8: tid = 0x7b70, 0x00007fa39ee42023 libc.so.6`select + 51
  thread #9: tid = 0x7b71, 0x00007fa39fd40d84
libpthread.so.0`pthread_cond_wait@@GLIBC_2.3.2 + 196
(lldb)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130709/9494722d/attachment.html>


More information about the lldb-dev mailing list