File: sig.cmd

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (25 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
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 1
continue
kill
y