Subject: Re: gdb and threads
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: netbsd-users
Date: 08/22/2007 13:05:54
"Steven M. Bellovin" <smb@cs.columbia.edu> writes:

> Is there any way to get gdb to give me (a) a list of running threads in
> a core dump,

"info threads"

> and (b) the stack traces of threads other than the current
> one?  This is for -current, which has gdb 6.5.

"thread 2" to switch to thread 2 and then "bt" as usual for general
examination, or "thread apply 2 bt" to get just the backtrace in that
thread context, or "thread apply all bt" to get them in bulk.

	- Nathan