<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lldb doesn't display inferior thread names during 'thread list'"
   href="http://llvm.org/bugs/show_bug.cgi?id=16577">16577</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb doesn't display inferior thread names during 'thread list'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matt.kopec@intel.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>