aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-linux-tdep.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-07-12 15:15:19 +0200
committerTom de Vries <tdevries@suse.de>2022-07-12 15:15:19 +0200
commit43f074cde435be5d9ee0cf2f264a70cd539c1983 (patch)
tree5fc0ea37fcc3780e3d354a337e0257a10edba1d8 /gdb/amd64-linux-tdep.c
parent3f6227c2f40a3e6009c60483f464e349d30145bb (diff)
downloadbinutils-43f074cde435be5d9ee0cf2f264a70cd539c1983.zip
binutils-43f074cde435be5d9ee0cf2f264a70cd539c1983.tar.gz
binutils-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/amd64-linux-tdep.c')
-rw-r--r--gdb/amd64-linux-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 9a0759d..18a0c3f 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -463,6 +463,9 @@ amd64_canonicalize_syscall (enum amd64_syscall syscall_number)
case amd64_sys_pipe2:
return gdb_sys_pipe2;
+ case amd64_sys_getrandom:
+ return gdb_sys_getrandom;
+
case amd64_sys_select:
case amd64_x32_sys_select:
return gdb_sys_select;