]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Filter 'New thread' lines
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 Jun 2015 22:22:56 +0000 (22:22 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 Jun 2015 22:22:56 +0000 (22:22 +0000)
gdb 7.9 reports new threads at different moment than the previous versions.
Filter these new threads lines so as to not be dependent on this
gdb aspect.

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

gdbserver_tests/filter_gdb
gdbserver_tests/hginfo.stdoutB.exp
gdbserver_tests/hgtls.stdoutB.exp
gdbserver_tests/mcinfcallWSRU.stderrB.exp
gdbserver_tests/nlcontrolc.stdoutB.exp

index 239e76f3707ff08f9ddee3559280c26bf067b2af..28bbf0b1590f1416b4e27ed0090379bd42de4740 100755 (executable)
@@ -113,6 +113,7 @@ sed -e '/Remote debugging using/,/vgdb launched process attached/d'
     -e 's/^\([ \*] [1234] \) *Thread /\1Thread /'                                                     \
     -e 's/VgTs_WaitSys) 0x/VgTs_WaitSys)  0x/'                                                        \
     -e '/Cannot access memory at address 0x......../d'                                                \
+    -e '/\[New Thread/d'                                                                              \
     -e '/^$/d'                                                                                     |
 
 # remove all the lines telling where the SIGFPE was trapped.
index 92d878df34c473b2fcef844cc22ca52e59d4f315..ed8863b9160fbbc8ac00a5ef09a1824a0bf3cb0a 100644 (file)
@@ -1,10 +1,8 @@
 Breakpoint 1 at 0x........: file hg01_all_ok.c, line 13.
 Continuing.
-[New Thread ....]
 Breakpoint 1, breakme () at hg01_all_ok.c:13
 13        if (shared == 1)
 Continuing.
-[New Thread ....]
 Breakpoint 1, breakme () at hg01_all_ok.c:13
 13        if (shared == 1)
 Continuing.
index 1fb3f20a3fafc584a64b8f910d1ea31102f7fd9f..e8e621b3d6ad994cb0683232250f686f2c714592 100644 (file)
@@ -1,58 +1,44 @@
 Breakpoint 1 at 0x........: file tls.c, line 55.
 Continuing.
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test race tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test race tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test local tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test local tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test global tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test global tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test static_extern tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test static_extern tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_extern tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_extern tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_local tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_local tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_global tls_ip 0x........ ip 0x........ equal 1
-[New Thread ....]
 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55
 55             int here = 0;
 test so_global tls_ip 0x........ ip 0x........ equal 1
index 57105452907c8887f75a001efe293b7ffedc9228..bc88ef7df9d65bad18451d48fab57b9dd0c04a70 100644 (file)
@@ -2,15 +2,12 @@ relaying data between gdb and process ....
 vgdb-error value changed from 0 to 999999
 Breakpoint 1 at 0x........: file sleepers.c, line 72.
 Continuing.
-[New Thread ....]
 Breakpoint 1, sleeper_or_burner (v=0x........) at sleepers.c:72
 72        int i = 0;
 Continuing.
-[New Thread ....]
 Breakpoint 1, sleeper_or_burner (v=0x........) at sleepers.c:72
 72        int i = 0;
 Continuing.
-[New Thread ....]
 Breakpoint 1, sleeper_or_burner (v=0x........) at sleepers.c:72
 72        int i = 0;
 Continuing.
index 70f355b0a2995de5f6e70525ae586a3c81d7db68..7336633b74a7dccb446bd00169db14d6c019303e 100644 (file)
@@ -1,9 +1,6 @@
 Continuing.
 Program received signal SIGTRAP, Trace/breakpoint trap.
 0x........ in syscall ...
-[New Thread ....]
-[New Thread ....]
-[New Thread ....]
   4 Thread .... (tid 4 VgTs_WaitSys)  0x........ in syscall ...
   3 Thread .... (tid 3 VgTs_WaitSys)  0x........ in syscall ...
   2 Thread .... (tid 2 VgTs_WaitSys)  0x........ in syscall ...