]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Update filter_gdb to make nlcontrolc work with gdb 8.2
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 15 Sep 2018 09:06:07 +0000 (11:06 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 15 Sep 2018 09:06:07 +0000 (11:06 +0200)
gdb 8.2 has changed the layout of the thread list headers.

Tested on debian/amd64 with gdb 7.12/8.0/8.1/8.2

gdbserver_tests/filter_gdb

index 662028f5f09214e0553b29bb044bf809ffbe2e9d..f704d1c8837f75dd4c5d9562354c9df7c719d225 100755 (executable)
@@ -130,8 +130,8 @@ sed -e '/Remote debugging using/,/vgdb launched process attached/d'
     -e 's/0x........ in \(main () at clean_after_fork.c:34\)/\1/'                                     \
     -e 's/\(^.*signal SIGFPE.*$\)/\1\nafter trap SIGFPE/'                                             \
     -e 's/p=p@entry=0x/p=0x/'                                                                        \
-    -e 's/\(^Breakpoint 1, tls_ptr (p=0x........\) <tests[0-9+]*>\() at tls.c:55\)/\1\2/'         \
-    -e '/Id   Target Id         Frame/d'                                                              \
+    -e 's/\(^Breakpoint 1, tls_ptr (p=0x........\) <tests[0-9+]*>\() at tls.c:55\)/\1\2/'             \
+    -e '/Id   Target Id *Frame/d'                                                                     \
     -e 's/^\([ \*] [1234] \) *Thread /\1Thread /'                                                     \
     -e 's/^  [0-9] Thread .... (tid [0-9] .*$//'                                                      \
     -e 's/VgTs_WaitSys) 0x/VgTs_WaitSys)  0x/'                                                        \