From: Mark W. <ma...@so...> - 2025-03-30 11:13:20
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ddcb3aa3ed3188cd28c193225245a76e928b850b commit ddcb3aa3ed3188cd28c193225245a76e928b850b Author: Mark Wielaard <ma...@kl...> Date: Sun Mar 30 13:08:55 2025 +0200 filter_gdb.in: filter out __libc_do_syscall On i386 and armhf __libc_do_syscall might be used to invoke a syscall. Replace __libc_do_syscall with "in syscall ..." and filter out possible extra (assembly) source file lines containing libc-do-syscall.S from the gdb output. https://bugs.kde.org/show_bug.cgi?id=502126 Diff: --- gdbserver_tests/filter_gdb.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdbserver_tests/filter_gdb.in b/gdbserver_tests/filter_gdb.in index e2b329a604..d7b1bb11c6 100755 --- a/gdbserver_tests/filter_gdb.in +++ b/gdbserver_tests/filter_gdb.in @@ -137,6 +137,12 @@ s/in _dl_sysinfo_int80 () from \/lib\/ld-linux.so.*/in syscall .../ # in __syscall_cancel_arch is just in a syscall s/in __syscall_cancel_arch .*/in syscall .../ +# do_syscall is in syscall +s/__libc_do_syscall ().*/0x........ in syscall .../ + +# extra source code line +/libc-do-syscall.S/d + # anonymise kill syscall. s/in kill ().*$/in syscall .../ |