Subject: toolchain/34194: gdb "info threads" does not work
To: None <,,>
From: Martin Husemann <>
List: netbsd-bugs
Date: 08/13/2006 09:45:00
>Number:         34194
>Category:       toolchain
>Synopsis:       gdb "info threads" does not work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 13 09:45:00 +0000 2006
>Originator:     Martin Husemann
>Release:        NetBSD 4.99.1
System: NetBSD 4.99.1 NetBSD 4.99.1 (NELLY) #38: Fri Aug 11 13:28:18 CEST 2006 sparc64
Architecture: sparc64
Machine: sparc64

To test the new gdb I set HAVE_GDB=6 and did a, which worked fine.
The resulting gdb works pretty well, but when debugging threaded apps, it
does never show any threads (though it can break in different threads and
show the local variables just fine).


Run a -pthread linked program using pthread_create, add a breakpoint in some
thread, run it under gdb and type "info threads". Output is empty (at least
on sparc64)