Blame gdbserver_tests-update-filters-for-newer-glibc-gdb.patch

Mark Wielaard 3e84eb
From 6da22a4d246519cd1a638cfc7eff00cdd74413c4 Mon Sep 17 00:00:00 2001
Mark Wielaard 3e84eb
From: Mark Wielaard <mark@klomp.org>
Mark Wielaard 3e84eb
Date: Fri, 16 Jul 2021 21:37:21 +0200
Mark Wielaard 3e84eb
Subject: [PATCH] gdbserver_tests: update filters for newer glibc/gdb
Mark Wielaard 3e84eb
Mark Wielaard 3e84eb
With newer glibc/gdb we might see a __select call without anything
Mark Wielaard 3e84eb
following on the line. Also when gdb cannot find a file it might
Mark Wielaard 3e84eb
now print "Inappropriate ioctl for device" instead of the message
Mark Wielaard 3e84eb
"No such file or directory"
Mark Wielaard 3e84eb
---
Mark Wielaard 3e84eb
 gdbserver_tests/filter_gdb  | 1 +
Mark Wielaard 3e84eb
 gdbserver_tests/filter_vgdb | 1 +
Mark Wielaard 3e84eb
 2 files changed, 2 insertions(+)
Mark Wielaard 3e84eb
Mark Wielaard 3e84eb
diff --git a/gdbserver_tests/filter_gdb b/gdbserver_tests/filter_gdb
Mark Wielaard 3e84eb
index 3bcd26d86..4a5b5d7a5 100755
Mark Wielaard 3e84eb
--- a/gdbserver_tests/filter_gdb
Mark Wielaard 3e84eb
+++ b/gdbserver_tests/filter_gdb
Mark Wielaard 3e84eb
@@ -111,6 +111,7 @@ s/\(0x........\) in ?? ()$/\1 in syscall .../
Mark Wielaard 3e84eb
 #         If select.c sources are present, we can also get a line containing:
Mark Wielaard 3e84eb
 #              return SYSCALL_CANCEL....
Mark Wielaard 3e84eb
 s/in __select .*/in syscall .../
Mark Wielaard 3e84eb
+s/in __select$/in syscall .../
Mark Wielaard 3e84eb
 /exceptfds/d
Mark Wielaard 3e84eb
 /sysv\/linux\/select\.c/d
Mark Wielaard 3e84eb
 /return SYSCALL_CANCEL /d
Mark Wielaard 3e84eb
diff --git a/gdbserver_tests/filter_vgdb b/gdbserver_tests/filter_vgdb
Mark Wielaard 3e84eb
index f8028a39a..679ca4b31 100755
Mark Wielaard 3e84eb
--- a/gdbserver_tests/filter_vgdb
Mark Wielaard 3e84eb
+++ b/gdbserver_tests/filter_vgdb
Mark Wielaard 3e84eb
@@ -18,6 +18,7 @@ sed -e '/relaying data between gdb and process/d'                        \
Mark Wielaard 3e84eb
     
Mark Wielaard 3e84eb
 # filter some debuginfo problems with ld.so and SLES11
Mark Wielaard 3e84eb
 sed -e '/^1	rtld.c: No such file or directory\./d' |
Mark Wielaard 3e84eb
+sed -e '/rtld.c: Inappropriate ioctl for device\./d' |
Mark Wielaard 3e84eb
 
Mark Wielaard 3e84eb
 # and filter out any remaining empty lines
Mark Wielaard 3e84eb
 sed -e '/^$/d'
Mark Wielaard 3e84eb
-- 
Mark Wielaard 3e84eb
2.27.0
Mark Wielaard 3e84eb