Re: GDB & info threads command

Daniel Jacobowitz
2002-03-08T03:29:13Z

On Thu, Mar 07, 2002 at 07:22:07PM -0800, Jeff Jenkins wrote:
>
> Hi,
>
> I have GDB sources from 03/06/02 running on RH7.2 (kernel 2.4.7-10).
> I created a multi-threaded app that created 100 threads, and then promptly
> dumps core.
> (on purpose!)
>
> I fire up "gdb test core" and do an "info threads" and all I get is one
> thread, namely the thread
> that caused the SIGSEGV. I was expecting to see the stacks from all 100
> threads. Is there a fix for this? Do I need a newer kernel?
>
> Any help would be groovey!

No Linux kernel currently dumps the thread registers to coredumps.
Hopefully I'll get a chance to submit the patches for that in a month
or two.

--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer