1# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcsigpass
3echo vgdb launched process attached\n
4monitor v.set vgdb-error 999999
5#
6# After this continue, we will receive 5 signals.
7continue
8#
9# SIGTRAP : caused by invalid write error detected by memcheck
10continue
11#
12# SIGSEGV : line 99
13continue
14#
15# SIGSEGV : line 104
16continue
17#
18# SIGBUS  : line 109
19continue
20#
21# SIGFPE  : line 114
22continue
23echo after continue SIGFPE
24#
25# program will exit
26quit
27
28