threads/76821: Add access to gdb unique thread id

Niall Douglas s_sourceforge at nedprod.com
Sat Jan 29 09:20:04 PST 2005


>Number:         76821
>Category:       threads
>Synopsis:       Add access to gdb unique thread id
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-threads
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 29 17:20:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Niall Douglas
>Release:        5.3
>Organization:
>Environment:
>Description:
It would be really handy if a unique integer could be obtained from struct pthread_t so that one can print debug information to stdout like so:

Thread 12345678 gets 32 bytes from pipe

.. and then in GDB one can match up thread id 12345678 with what gdb knows. Then you can get some idea of which thread is which, something that is currently rather hard :(

Some function like pthread_getid_np() would be ideal.

Cheers,
Niall

>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-threads mailing list