]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix gdbserver tests failing due to 'warning: ' prefix in syscall-template.S line
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 11 Feb 2024 15:14:54 +0000 (16:14 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 11 Feb 2024 15:19:02 +0000 (16:19 +0100)
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

gdbserver_tests/filter_gdb.in

index 7fb2f5829c298390fea975ae44cfbf09fa0c0a65..d6c39d36fe7a8ec7c52a936ad1b1e16049033cd8 100755 (executable)
@@ -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