]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Tweak gdbserver_tests/mcinfcallWSRU.stderrB.exp to match more gdb versions.
authorMark Wielaard <mark@klomp.org>
Tue, 2 Sep 2014 10:16:42 +0000 (10:16 +0000)
committerMark Wielaard <mark@klomp.org>
Tue, 2 Sep 2014 10:16:42 +0000 (10:16 +0000)
Some gdb versions don't show the source line:number after switching
threads in #0  0x........ in do_burn (). Filter "at line:number" out
and don't expect it.

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

gdbserver_tests/filter_gdb
gdbserver_tests/mcinfcallWSRU.stderrB.exp

index 4a516d3f1ca9d88a6f19d25c1e24d1b9e28fd29a..239e76f3707ff08f9ddee3559280c26bf067b2af 100755 (executable)
@@ -58,6 +58,8 @@ sed -e '/^\ \ \ \ \.\.\.$/d'                                        |
 #       differently between gdb versions, normalize to "Program exited...".
 #       for hgtls the breakpoint p=... address might show var location.
 #      gdb might also try to show the "entry value" p=p@entry=0x...
+#      Some gdb versions don't show the source line:number after switching
+#              threads in #0  0x........ in do_burn ().
 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/'                                                \
@@ -71,6 +73,7 @@ sed -e '/Remote debugging using/,/vgdb launched process attached/d'
     -e 's/\(\[Switching to thread [1234] (Thread ....)\]\)#0/\1\n#0/'                                 \
     -e 's/^\([ \* ] [0-9] Thread .... (tid [0-9] VgTs_WaitSys)  0x........ in\).*$/\1 syscall .../'   \
     -e 's/#[0-9]\(  0x........ in sleeper_or_burner\)/#.\1/'                                          \
+    -e 's/\(#0  0x........ in do_burn ()\) at sleepers.c:39/\1/'                                      \
     -e '/^Reading symbols from .*\.\.\.done\./d'                                                      \
     -e '/^Loaded symbols for .*$/d'                                                                   \
     -e '/^Current language.*/d'                                                                       \
index 137e19a2cebeecb9458f584f2f3789ce29ff2a8e..57105452907c8887f75a001efe293b7ffedc9228 100644 (file)
@@ -21,7 +21,7 @@ Program received signal SIGTRAP, Trace/breakpoint trap.
 0x........ in do_burn () at sleepers.c:39
 39        for (i = 0; i < burn; i++) loopnr++;
 [Switching to thread 1 (Thread ....)]
-#0  0x........ in do_burn () at sleepers.c:39
+#0  0x........ in do_burn ()
 39        for (i = 0; i < burn; i++) loopnr++;
 $1 = void
 [Switching to thread 2 (Thread ....)]