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]
Other format: [Raw text]

SIGSTOP weirdness


Dear all,

I am experiencing a problem with SIGSTOP and SIGCONT - when sent in
large doses to a debugged program:

Take for example the program:

int main() {
while (-1) ;
}

In a fairly recent CVS GDB (20050310), I set

(gdb) handle SIGSTOP nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIGSTOP       No        No      Yes             Stopped (signal)
(gdb) handle SIGCONT nostop noprint pass
Signal        Stop      Print   Pass to program Description
SIGCONT       No        No      Yes             Continued
(gdb) r

Which means GDB should pretty much ignore them.. but look what happens
when many signals are sent from the command line to the target process:

while (true ) ; do kill -SIGSTOP 31639;  kill -SIGCONT 31639;  done

We get this GDB error:

Couldn't get registers: No such process.
(gdb)


Anyone know why?

Regards
David
-- 
David Lecomber, 
Software Director,                    http://www.allinea.com
Allinea Software                      +44 1926 623231



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