mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
12 lines
324 B
Plaintext
12 lines
324 B
Plaintext
# 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
|
|
echo filter_gdb BEGIN drop\n
|
|
continue
|
|
echo filter_gdb END drop\n
|
|
# continue at the last instruction
|
|
continue
|
|
# see program is gone with exit code
|
|
quit
|