From 43f074cde435be5d9ee0cf2f264a70cd539c1983 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 12 Jul 2022 15:15:19 +0200 Subject: [gdb/record] Support recording of getrandom Add missing support for recording of linux syscall getrandom. Tested on x86_64-linux with native and target board unix/-m32. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22081 --- gdb/s390-linux-tdep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/s390-linux-tdep.c') diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c index 9d4e2d0..5be4984 100644 --- a/gdb/s390-linux-tdep.c +++ b/gdb/s390-linux-tdep.c @@ -787,6 +787,8 @@ s390_canonicalize_syscall (int syscall, enum s390_abi_kind abi) /* ioprio_set .. epoll_pwait */ else if (syscall >= 282 && syscall <= 312) ret = syscall + 7; + else if (syscall == 349) + ret = gdb_sys_getrandom; else ret = gdb_sys_no_syscall; -- cgit v1.1