-e 's/in _dl_sysinfo_int80 () from \/lib\/ld-linux.so.*/in syscall .../' \
-e 's/in kill ().*$/in syscall .../' \
-e 's/in .*kill ().*$/in syscall .../' \
+ -e 's/in _exit () from \/lib\/libc.so.*$/in syscall .../' \
+ -e 's/in \._exit () from \/lib64\/libc.so.*$/in syscall .../' \
-e 's/in _dl_sysinfo_int80 ()/in syscall .../' \
-e '/^ from \/lib\/ld-linux.so.*$/d' \
-e 's/\(0x........\) in ?? () from \/lib.*$/\1 in syscall .../' \
-e 's/in \(.__\)\{0,1\}select () from \/.*$/in syscall .../' \
-e '/^ from \/lib\/libc.so.*$/d' \
-e '/^ from \/lib64\/libc.so.*$/d' \
- -e '/^ from \/lib64\/.*\/libc.so.*$/d' \
+ -e '/^ from \/lib64\/.*\/libc.so.*$/d' \
-e 's/in select ()$/in syscall .../' \
-e 's/in \.__select ()$/in syscall .../' \
-e 's/in select () at \.\.\/sysdeps\/unix\/syscall-template\.S.*$/in syscall .../' \
# connect gdb to Valgrind gdbserver:
target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlgone-abrt
echo vgdb launched process attached\n
-
continue
# see process get a fatal signal
continue
-vgdb launched process attached
Continuing.
Program received signal SIGABRT, Aborted.
0x........ in syscall ...
Nulgrind, the minimal Valgrind tool
(action at startup) vgdb me ...
-
-
starting ...
exiting ...
+(action at exit) vgdb me ...
# connect gdb to Valgrind gdbserver:
target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlgone-exit
echo vgdb launched process attached\n
-
+# continue after startup
+continue
+# continue at the last instruction
continue
# see program is gone with exit code
quit
-vgdb launched process attached
+Continuing.
+Program received signal SIGTRAP, Trace/breakpoint trap.
+0x........ in syscall ...
Continuing.
Program exited with code 01.
# test that an exit (with return value) is properly passed on to gdb.
-
+# also test the --vgdb-stop-at startup and exit args (so we do not use
+# --vgdb-error=0 here)
prog: gone
args: exit
-vgopts: --tool=none --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-nlgone-exit
+vgopts: --tool=none --vgdb=yes --vgdb-stop-at=startup,exit --vgdb-prefix=./vgdb-prefix-nlgone-exit
stderr_filter: filter_stderr
prereq: test -e gdb
progB: gdb
# connect gdb to Valgrind gdbserver:
target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlgone-return
echo vgdb launched process attached\n
-
continue
# see program is gone
quit
-vgdb launched process attached
Continuing.
Program exited normally.