This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Is the current gdb 5.1 broken for Linuxthreads?
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Is the current gdb 5.1 broken for Linuxthreads?
- From: James Cownie <jcownie at etnus dot com>
- Date: Fri, 21 Sep 2001 10:26:46 +0100
- CC: Eric Paire <paire at ri dot silicomp dot fr>, Andrew Cagney <ac131313 at cygnus dot com>, Mark Kettenis <kettenis at science dot uva dot nl>, GDB <gdb at sourceware dot cygnus dot com>
- Reply-To: James Cownie <jcownie at etnus dot com>
Eric wrote :-
> There is no support for MT core dumps.
H.J. replied :-
> Try the current Red Hat kernel/ac kernel. They support it. The patch
> is very small. I am enclosing it here.
However inspection shows that that patch does _not_ implement a
multi-threaded core dump. What it does is to dump a full core file for
each thread.
That seems a somewhat perverse approach, given that
1) the ELF core dump format easily handles a genuine multi-threaded
core dump (cf Solaris, IRIX, ...)
2) debuggers already know how to read such multi-threaded core dumps
and present them as a process with multiple threads.
3) dumping a full core dump for each thread is (to first
approximation) using nthreads too much I/O and nthreads too much
disk space.
What is wanted is a genuine multi-threaded core dump, not this
horror...
-- Jim
James Cownie <jcownie@etnus.com>
Etnus, LLC. +44 117 9071438
http://www.etnus.com