Subject: /proc needed for 'gdb -p'? (was: CVS commit: src/gnu)
To: None <tech-toolchain@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-toolchain
Date: 02/18/2006 16:16:42
On Fri, Feb 17, 2006 at 07:59:00AM +0000, Nick Hudson wrote:
> 
> Module Name:	src
> Committed By:	skrll
> Date:		Fri Feb 17 07:59:00 UTC 2006
> 
> Modified Files:
[..]
> Added Files:
> 	src/gnu/dist/gdb/gdb: nbsd-proc.c
> 
> Log Message:
> Fix PR 32076 by using procfs to get details of the file when attaching
> to a process.
> 
> Discussed (briefly) on tech-toolchain and OK'ed by thorpej.

Does that mean you can't debug a process without having /proc?
Hmm, reading the mail archives seem that this only affects users which
don't supply the filename of that process.

IMHO this restriction should be documented in the manpage.
What would happend if you do that without have /proc?

Btw, the gdb manpage doesn't even mention the '-p' option, and gdb -h
shows only the long options.

Bernd