This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with gdb-5.0 on sparc-sun-solaris2.7


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]