Re: [bkpatch] Multiple threads in core dumps (was: Re: Thread

Daniel Jacobowitz (dan@debian.org)
Tue, 12 Mar 2002 11:42:52 -0500


On Tue, Mar 12, 2002 at 08:07:30PM +0900, Tachino Nobuhiro wrote:
>
> Hello,
>
> At Tue, 12 Mar 2002 11:11:52 +0000 (GMT),
> Alan Cox wrote:
> >
> > > I am now trying to implement gcore system call on linux and have a
> > > great interest in your patch.
> >
> > The old Berkeley gcore wasnt a system call nor did it need to be. Ptrace
> > (and in their case grovelling around in /dev/mem) is more than sufficient
>
> IMHO, implementing gcore with ptrace has some problems, I think. If the process sleeps
> with TASK_UNINTERRUPTIBLE, almost ptrace() calls fails. If the process is already traced,
> you cannot use ptrace().

GDB implements gcore entirely via ptrace. Are there really so many
cases where that is inadequate? And the second objection (and maybe
the first) may go away if/when David Howells' new debugging interface
is ready.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/