This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Problem with gdb-5.0 on sparc-sun-solaris2.7
- To: "'gdb at sourceware dot cygnus dot com'" <gdb at sourceware dot cygnus dot com>
- Subject: Problem with gdb-5.0 on sparc-sun-solaris2.7
- From: Kick Damien-DKICK1 <DKICK1 at motorola dot com>
- Date: Tue, 10 Apr 2001 05:36:54 -0500
- Cc: Kick Damien-DKICK1 <DKICK1 at motorola dot com>
I'm having a problem with gdb-5.0 (see details below) which appears to
be very similiar to problem reported in the mailing list
<http://sources.redhat.com/ml/gdb/2000-07/msg00110.html> with the
difference that I am not attempting to use a GUI interface. Any
ideas?
% cat test.cc
int main() { int i = 69; }
% g++ -v
Reading specs from ...
gcc version 2.95.3 20010315 (release)
% gdb -v
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
...
This GDB was configured as "sparc-sun-solaris2.7".
% g++ -g test.cc -o test
% uname -a
SunOS ... 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-60
% ./test
% gdb test
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
...
This GDB was configured as "sparc-sun-solaris2.7"...
(gdb) run
Starting program: .../test
/proc/7276: Resource temporarily unavailable.
init_inferior: wait_for_stop failed
(gdb) quit
The program is running. Exit anyway? (y or n) y
% gdb --nw test
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
...
This GDB was configured as "sparc-sun-solaris2.7"...
(gdb) run
Starting program: .../test
/proc/7280: Resource temporarily unavailable.
init_inferior: wait_for_stop failed
(gdb) quit
The program is running. Exit anyway? (y or n) y
%
'truss'ing the running 'gdb' shows that the failure in '/proc' comes
from an attempt to 'open' '/proc/pid/status' that fails with EAGAIN.
--
Damien Kick