summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-11-23 11:46:34 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-11-23 14:12:46 +0000
commit5013824590f59374106007d4c9724d5767911d75 (patch)
treebc7949c8c6328a524905917445c9022935904901
parentRemove declarations of is_running/is_stopped/is_exited (diff)
downloadbinutils-gdb-5013824590f59374106007d4c9724d5767911d75.tar.gz
binutils-gdb-5013824590f59374106007d4c9724d5767911d75.tar.bz2
binutils-gdb-5013824590f59374106007d4c9724d5767911d75.tar.xz
gdbserver: AArch64: Remove cannot_fetch/store_register
The cannot store/fetch register functions are only used for checking if a register can be accessed using PEEKUSER/POKEUSER. The AArch64 port doesn't support this method of access, so remove the unused functions. gdb/gdbserver: * linux-aarch64-low.c (aarch64_cannot_store_register): Remove. (aarch64_cannot_fetch_register): Likewise. (struct linux_target_ops): Update references.
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/linux-aarch64-low.c20
2 files changed, 8 insertions, 18 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 1b016d5..91a62b6 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
12018-11-23 Alan Hayward <alan.hayward@arm.com>
2
3 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4 (aarch64_cannot_fetch_register): Likewise.
5 (struct linux_target_ops): Update references.
6
12018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> 72018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2 8
3 * linux-ppc-low.c: Include nat/linux-ptrace.h. 9 * linux-ppc-low.c: Include nat/linux-ptrace.h.
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index 1d34e31..181e266 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -84,22 +84,6 @@ is_sve_tdesc (void)
84 return regcache->tdesc->reg_defs.size () == AARCH64_SVE_NUM_REGS; 84 return regcache->tdesc->reg_defs.size () == AARCH64_SVE_NUM_REGS;
85} 85}
86 86
87/* Implementation of linux_target_ops method "cannot_store_register". */
88
89static int
90aarch64_cannot_store_register (int regno)
91{
92 return regno >= AARCH64_NUM_REGS;
93}
94
95/* Implementation of linux_target_ops method "cannot_fetch_register". */
96
97static int
98aarch64_cannot_fetch_register (int regno)
99{
100 return regno >= AARCH64_NUM_REGS;
101}
102
103static void 87static void
104aarch64_fill_gregset (struct regcache *regcache, void *buf) 88aarch64_fill_gregset (struct regcache *regcache, void *buf)
105{ 89{
@@ -3041,8 +3025,8 @@ struct linux_target_ops the_low_target =
3041{ 3025{
3042 aarch64_arch_setup, 3026 aarch64_arch_setup,
3043 aarch64_regs_info, 3027 aarch64_regs_info,
3044 aarch64_cannot_fetch_register, 3028 NULL, /* cannot_fetch_register */
3045 aarch64_cannot_store_register, 3029 NULL, /* cannot_store_register */
3046 NULL, /* fetch_register */ 3030 NULL, /* fetch_register */
3047 aarch64_get_pc, 3031 aarch64_get_pc,
3048 aarch64_set_pc, 3032 aarch64_set_pc,