diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-06-28 12:02:35 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-06-28 12:03:28 +0100 |
commit | 4cc32bec04aadc5c070d0f4aee656313a4854c11 (patch) | |
tree | 7b5faed21daff5274044424a902f4596b2c29d92 /gdb/gdbserver/linux-low.h | |
parent | a31d2f068fa1384c505b540ea595d2d97813ba5f (diff) | |
download | gdb-4cc32bec04aadc5c070d0f4aee656313a4854c11.zip gdb-4cc32bec04aadc5c070d0f4aee656313a4854c11.tar.gz gdb-4cc32bec04aadc5c070d0f4aee656313a4854c11.tar.bz2 |
Remove parameter sysret from linux_target_ops.get_syscall_trapinfo
When I implement linux_target_ops.get_syscall_trapinfo for aarch64 and arm,
I find the second parameter sysret isn't used at all. In RSP, we don't
need syscall return value either, because GDB can figure out the return
value from registers content got by 'g' packet.
This patch is to remove them.
gdb/gdbserver:
2016-06-28 Yao Qi <yao.qi@linaro.org>
* linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
Callers updated.
* linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
Remove parameter sysno.
* linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
sysret.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r-- | gdb/gdbserver/linux-low.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 6e7ddbd..5057e66 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -241,11 +241,9 @@ struct linux_target_ops /* See target.h. */ int (*supports_hardware_single_step) (void); - /* Fill *SYSNO with the syscall nr trapped. Fill *SYSRET with the - return code. Only to be called when inferior is stopped - due to SYSCALL_SIGTRAP. */ - void (*get_syscall_trapinfo) (struct regcache *regcache, - int *sysno, int *sysret); + /* Fill *SYSNO with the syscall nr trapped. Only to be called when + inferior is stopped due to SYSCALL_SIGTRAP. */ + void (*get_syscall_trapinfo) (struct regcache *regcache, int *sysno); /* See target.h. */ int (*get_ipa_tdesc_idx) (void); |