]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Too difficult to match the stacktrace of the last instruction
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 24 Apr 2014 21:52:02 +0000 (21:52 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 24 Apr 2014 21:52:02 +0000 (21:52 +0000)
of a program => let's remove these (uninteresting) lines
rather than trying to 'sed' them to make them look the same
on different OS/platform/....

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13906

gdbserver_tests/filter_gdb
gdbserver_tests/nlgone_exit.stdinB.gdb
gdbserver_tests/nlgone_exit.stdoutB.exp

index a31cb0f175a77be5ccb2d8c5a45e626faa21a081..71463ab513d07c2a689acfd9a2ec0f489e1045cb 100755 (executable)
@@ -20,6 +20,8 @@ sed -e '/^\ \ \ \ \.\.\.$/d'                                        |
 #         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
@@ -54,6 +56,7 @@ sed -e '/^\ \ \ \ \.\.\.$/d'                                        |
 #       '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'                                                                   \
index 3724be6ec3f152ea38213bdf63d5f93366c6f8e2..2ed6ed3eb49c1b08add77fbd1c4c9ae544883b0d 100644 (file)
@@ -2,7 +2,9 @@
 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
index 3f4c712590e9dee53e538153ba1d8a864beab41f..081e862c77a1f24258deb99f2ea4d9babbccf02c 100644 (file)
@@ -1,5 +1,2 @@
 Continuing.
-Program received signal SIGTRAP, Trace/breakpoint trap.
-0x........ in syscall ...
-Continuing.
 Program exited with code 01.