diff options
author | Tom de Vries <tdevries@suse.de> | 2022-07-12 15:15:19 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-07-12 15:15:19 +0200 |
commit | 43f074cde435be5d9ee0cf2f264a70cd539c1983 (patch) | |
tree | 5fc0ea37fcc3780e3d354a337e0257a10edba1d8 /gdb/s390-linux-tdep.c | |
parent | 3f6227c2f40a3e6009c60483f464e349d30145bb (diff) | |
download | gdb-43f074cde435be5d9ee0cf2f264a70cd539c1983.zip gdb-43f074cde435be5d9ee0cf2f264a70cd539c1983.tar.gz gdb-43f074cde435be5d9ee0cf2f264a70cd539c1983.tar.bz2 |
[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
Diffstat (limited to 'gdb/s390-linux-tdep.c')
-rw-r--r-- | gdb/s390-linux-tdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |