]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gdbserver_tests: update filters for newer glibc/gdb
authorMark Wielaard <mark@klomp.org>
Fri, 16 Jul 2021 19:37:21 +0000 (21:37 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 16 Jul 2021 19:37:39 +0000 (21:37 +0200)
With newer glibc/gdb we might see a __select call without anything
following on the line. Also when gdb cannot find a file it might
now print "Inappropriate ioctl for device" instead of the message
"No such file or directory"

gdbserver_tests/filter_gdb
gdbserver_tests/filter_vgdb

index 3bcd26d86cecf473f16fdcf54b7d2e41c86d3baa..4a5b5d7a5b4ccbb1239b9161c9fe53fb63c171ca 100755 (executable)
@@ -111,6 +111,7 @@ s/\(0x........\) in ?? ()$/\1 in syscall .../
 #         If select.c sources are present, we can also get a line containing:
 #              return SYSCALL_CANCEL....
 s/in __select .*/in syscall .../
+s/in __select$/in syscall .../
 /exceptfds/d
 /sysv\/linux\/select\.c/d
 /return SYSCALL_CANCEL /d
index f8028a39adbd87731087f36bbe25a6e9eeefd34b..679ca4b31cec7b49b5f588dd3139a9c119c8be12 100755 (executable)
@@ -18,6 +18,7 @@ sed -e '/relaying data between gdb and process/d'                        \
     
 # filter some debuginfo problems with ld.so and SLES11
 sed -e '/^1    rtld.c: No such file or directory\./d' |
+sed -e '/rtld.c: Inappropriate ioctl for device\./d' |
 
 # and filter out any remaining empty lines
 sed -e '/^$/d'