Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2005 17:19:27 GMT
From:      Niall Douglas <s_sourceforge@nedprod.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   threads/76821: Add access to gdb unique thread id
Message-ID:  <200501291719.j0THJRKr033945@www.freebsd.org>
Resent-Message-ID: <200501291720.j0THK4CF087024@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501291719.j0THJRKr033945>