]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gdbserver_tests: adjust filtering for the new gdb output
authorAlexandra Hájková <ahajkova@redhat.com>
Tue, 9 Apr 2019 09:09:56 +0000 (11:09 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 10 Apr 2019 16:55:55 +0000 (18:55 +0200)
mcsigpass and mcsignopass tests fails due to the slightly different
gdb output. Filter the tests output to make it the same for different
gdb version. Change mcsigpass and mcsignopass .exp to fit filtered
.out.

More generic regexp by Stefan Maksimovic <stefan.maksimovic@rt-rk.com>.

https://bugs.kde.org/show_bug.cgi?id=406355

NEWS
gdbserver_tests/filter_gdb
gdbserver_tests/mcbreak.stdoutB.exp
gdbserver_tests/mcinfcallWSRU.stderrB.exp
gdbserver_tests/mcsignopass.stdoutB.exp
gdbserver_tests/mcsigpass.stdoutB.exp
gdbserver_tests/nlcontrolc.stdoutB.exp

diff --git a/NEWS b/NEWS
index 6f420cab41755711bbacaea2e8f8f442205d0cf1..795a19bd435188c48584aa25577692739a390f29 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -148,6 +148,7 @@ where XXXXXX is the bug number as listed below.
         bit in output.
 406352  cachegrind/callgrind fails ann tests because of missing a.c
 406354  dhat is broken on x86 (32bit)
+406355  mcsignopass, mcsigpass, mcbreak fail due to difference in gdb output
 406360  memcheck/tests/libstdc++.supp needs more supression variants
 
 n-i-bz  add syswrap for PTRACE_GET|SET_THREAD_AREA on amd64.
index 05bbe4c5455554bdf554ff6572cf0d8e31a5b6f9..947e7bcb49b5972d717a5b2f262f86e771662c00 100755 (executable)
@@ -139,6 +139,7 @@ sed -e '/Remote debugging using/,/vgdb launched process attached/d'
     -e 's/VgTs_WaitSys) 0x/VgTs_WaitSys)  0x/'                                                        \
     -e '/Cannot access memory at address 0x......../d'                                                \
     -e '/\[New Thread/d'                                                                              \
+    -e 's/^0x........ in \(\w\+ (\)/\1/'                                                              \
     -e '/^$/d'                                                                                     |
 
 # remove all the lines telling where the SIGFPE was trapped.
index ba526daca89c6bab98b90a0a02f484036a9429ed..75590375d027aeb0ded9db71e71de215da4f0184 100644 (file)
@@ -43,11 +43,11 @@ Breakpoint 3, main (argc=1, argv=0x........) at t.c:120
 Delete all breakpoints? (y or n) [answered Y; input not from terminal]
 Continuing.
 Program received signal SIGTRAP, Trace/breakpoint trap.
-0x........ in make_error (s=0x........ "called from level") at t.c:41
+make_error (s=0x........ "called from level") at t.c:41
 41       if (int_und == 0)
 44          printf ("%s int_und is not zero\n", s);
 old_pc has changed after step
 Continuing.
 Program received signal SIGTRAP, Trace/breakpoint trap.
-0x........ in make_error (s=0x........ "called from main") at t.c:41
+make_error (s=0x........ "called from main") at t.c:41
 41       if (int_und == 0)
index a2f2b87e21dd8df8a70a6eb4f875cc19c9d657c7..06dc433896bf8802f1fb24bb23476774cd924215 100644 (file)
@@ -14,7 +14,7 @@ Breakpoint 1, sleeper_or_burner (v=0x........) at sleepers.c:74
 74        int i = 0;
 Continuing.
 Program received signal SIGTRAP, Trace/breakpoint trap.
-0x........ in do_burn () at sleepers.c:41
+do_burn () at sleepers.c:41
 41        for (i = 0; i < burn; i++) loopnr++;
 [Switching to thread 1 (Thread ....)]
 #0  0x........ in do_burn ()
index d77f9832a9a7f7ae4ef136324b339e2a96a2742d..18c830be6d36661687477371595dd334cd061993 100644 (file)
@@ -6,54 +6,54 @@ Signal        Stop    Print   Pass to program Description
 SIGFPE        Yes      Yes     Yes             Arithmetic exception
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Signal        Stop     Print   Pass to program Description
 SIGSEGV       No       Yes     Yes             Segmentation fault
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
 Program received signal SIGBUS, Bus error.
-0x........ in test3 () at faultstatus.c:126
+test3 () at faultstatus.c:126
 126            mapping[FILESIZE+10];
 Continuing.
 Program received signal SIGFPE, Arithmetic exception.
index de6c2634f94c87e9615be3304d9ef51c66c12029..680035836d8134bfc7f534473d3dc1b49c8db7cc 100644 (file)
@@ -1,14 +1,14 @@
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test1 () at faultstatus.c:116
+test1 () at faultstatus.c:116
 116            *BADADDR = 'x';
 Continuing.
 Program received signal SIGSEGV, Segmentation fault.
-0x........ in test2 () at faultstatus.c:121
+test2 () at faultstatus.c:121
 121            mapping[0] = 'x';
 Continuing.
 Program received signal SIGBUS, Bus error.
-0x........ in test3 () at faultstatus.c:126
+test3 () at faultstatus.c:126
 126            mapping[FILESIZE+10];
 Continuing.
 Program received signal SIGFPE, Arithmetic exception.
index e334fd0af33b5bdf93f0b89b4412361bb51d67b7..e8a5ff8ba8849a433cfdb79ba8244dce60d6af4f 100644 (file)
@@ -9,7 +9,7 @@ $4 = 0
 changed burning parameters
 Continuing.
 Program received signal SIGTRAP, Trace/breakpoint trap.
-0x........ in do_burn () at sleepers.c:41
+do_burn () at sleepers.c:41
 41        for (i = 0; i < burn; i++) loopnr++;
 $5 = 0
 $6 = 0