[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system/3922: gdb --pid is totally broken in OpenBSD 3.6
- To: bugs@cvs.openbsd.org
- Subject: Re: system/3922: gdb --pid is totally broken in OpenBSD 3.6
- From: Otto Moerbeek <otto@drijf.net>
- Date: Sat, 11 Sep 2004 07:05:02 -0600 (MDT)
The following reply was made to PR system/3922; it has been noted by GNATS.
From: Otto Moerbeek <otto@drijf.net>
To: Frank Denis <j@pureftpd.org>
Cc: gnats@openbsd.org
Subject: Re: system/3922: gdb --pid is totally broken in OpenBSD 3.6
Date: Sat, 11 Sep 2004 14:49:55 +0200 (CEST)
On Sat, 11 Sep 2004, Frank Denis wrote:
> >Synopsis: gdb --pid is totally broken in OpenBSD 3.6
When attaching to a process, the executable should be specified:
[otto@pepper:28]$ gdb --pid 31902 a.out
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-unknown-openbsd3.6"...
Attaching to program: /home/otto/a.out, process 31902
Reading symbols from /usr/lib/libc.so.34.1...done.
Loaded symbols for /usr/lib/libc.so.34.1
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
0x0fd388c5 in nanosleep () from /usr/lib/libc.so.34.1
(gdb) where
#0 0x0fd388c5 in nanosleep () from /usr/lib/libc.so.34.1
#1 0x0fd3d044 in sleep () from /usr/lib/libc.so.34.1
#2 0x1c00057a in main () at x.c:4
(gdb)
gdb a.out 31902 works as well.
-Otto