1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
set trace-commands on
# Test that debugged program's signals are saved and restored across
# debug calls.
### Testing that we have our signal set up...
info signals
### Testing handle command...
handle TERM nostack
handle foo
handle 1000
handle TERM bogus
eval kill -TERM $$
### Should not have printed a stack trace above...
handle TERM noprint
handle TERM stack
handle INT nostop
eval kill -TERM $$
info signals
continue
### Should have printed a stack trace above...
continue
where
continue
kill
y
|