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