aboutsummaryrefslogtreecommitdiff
path: root/include/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-24 00:14:15 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-24 23:51:16 -0400
commitbdedb2d21b3f0aceb391a96b8605d35f3a4ade5c (patch)
treef733a3831f010ca430c1931dc3fd7d34a09a48ba /include/sim
parent22c6cfe9c871977a0284711a53730b9a973a9fc9 (diff)
downloadgdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.zip
gdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.tar.gz
gdb-bdedb2d21b3f0aceb391a96b8605d35f3a4ade5c.tar.bz2
sim: callback: extend syscall interface to handle 7 args
The Linux syscall interface, depending on architecture, handles up to 7 arguments. Extend the callback API to handle those.
Diffstat (limited to 'include/sim')
-rw-r--r--include/sim/ChangeLog5
-rw-r--r--include/sim/callback.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog
index 3faea58..0897a52 100644
--- a/include/sim/ChangeLog
+++ b/include/sim/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-24 Mike Frysinger <vapier@gentoo.org>
+
+ * sim/callback.h (struct host_callback_struct): Add arg5, arg6, and
+ arg7.
+
2021-06-23 Mike Frysinger <vapier@gentoo.org>
* sim/callback.h (struct host_callback_struct): Add kill.
diff --git a/include/sim/callback.h b/include/sim/callback.h
index 8d61ebb8..be72f45 100644
--- a/include/sim/callback.h
+++ b/include/sim/callback.h
@@ -241,7 +241,7 @@ typedef struct cb_syscall {
/* The target's value of what system call to perform. */
int func;
/* The arguments to the syscall. */
- long arg1, arg2, arg3, arg4;
+ long arg1, arg2, arg3, arg4, arg5, arg6, arg7;
/* The result. */
long result;