# output of the echo command telling it is launched.
# This removes a whole lot of uninteresting lines varying
# with OS/glibc/gdb dep
+# then have a general way to delete uninteresting and vayring
+# lines.
# initial tty control character sent by gdb 7.0
# remove missing debuginfos
# vgdb message
# 'exited with code' and 'exited normally' are printed slightly
# differently between gdb versions, normalize to "Program exited...".
sed -e '/Remote debugging using/,/vgdb launched process attached/d' \
+ -e '/filter_gdb BEGIN drop/,/filter_gdb END drop/d' \
-e 's/^\e\[?1034hReading symbols/Reading symbols/' \
-e '/^Missing separate debuginfo/d' \
-e '/^Try: zypper install -C/d' \
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