From ddcb3aa3ed3188cd28c193225245a76e928b850b Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 30 Mar 2025 13:08:55 +0200 Subject: [PATCH] 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 --- 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 e2b329a60..d7b1bb11c 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 .../ -- 2.47.2