From: Philippe Waroquiers Date: Sun, 11 Feb 2024 15:14:54 +0000 (+0100) Subject: Fix gdbserver tests failing due to 'warning: ' prefix in syscall-template.S line X-Git-Tag: VALGRIND_3_23_0~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e16ec9077fce95bea84e12f476f5a8c3ccee696f;p=thirdparty%2Fvalgrind.git Fix gdbserver tests failing due to 'warning: ' prefix in syscall-template.S line At least on debina 12.5, with GDB 13.1 and GDB 14.1, 2 gdbserver tests fails due to a 'warning: ' word appearing in from of a line giving the syscall-template.S filename. Fix this by allowing an optional 'warning: ' regexp at the beginning of the line. Tested on debian 12.5, with GDB 12.1/13.1/14.1 and 15.0.50.20240211-git --- diff --git a/gdbserver_tests/filter_gdb.in b/gdbserver_tests/filter_gdb.in index 7fb2f5829c..d6c39d36fe 100755 --- a/gdbserver_tests/filter_gdb.in +++ b/gdbserver_tests/filter_gdb.in @@ -184,7 +184,7 @@ s/in \.__select () at \.\.\/sysdeps\/unix\/syscall-template\.S.*$/in syscall ... /^[ ]*at \.\.\/sysdeps\/unix\/syscall-template\.S/d /^[ ]*in \.\.\/sysdeps\/unix\/syscall-template\.S/d -/^[1-9][0-9]*[ ]*\.\.\/sysdeps\/unix\/syscall-template\.S/d +/^\(warning: \)\?[1-9][0-9]*[ ]*\.\.\/sysdeps\/unix\/syscall-template\.S/d /^[1-9][0-9]*[ ]in *\.\.\/sysdeps\/unix\/syscall-template\.S/d /^[1-9][0-9]*[ ]T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)/d