aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-tdep.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-05-22 09:23:22 +0100
committerAlan Hayward <alan.hayward@arm.com>2017-05-22 09:23:22 +0100
commit0f068fb5e5b65038c3ded3cfd2a4b8805196956c (patch)
tree0db98b7a0f08f79aa800e7b58f7412b25cbc4ca6 /gdb/ppc-tdep.h
parentca49a96781f723d43ec49471cbbb50aa511d063e (diff)
Add PPC_MAX_REGISTER_SIZE
gdb/ * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. (store_register): Likewise. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. (get_decimal_float_return_value): Likewise. (do_ppc_sysv_return_value): Likewise. (ppc64_sysv_abi_push_integer): Likewise. (ppc64_sysv_abi_push_freg): Likewise. (ppc64_sysv_abi_return_value_base): Likewise. (ppc64_sysv_abi_return_value): Likewise. * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. * rs6000-nat.c: Likewise. * rs6000-tdep.c (rs6000_register_to_value): Likewise. (rs6000_value_to_register): Likewise. * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
Diffstat (limited to 'gdb/ppc-tdep.h')
-rw-r--r--gdb/ppc-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h
index 8d15ace214..4ae5c7f66e 100644
--- a/gdb/ppc-tdep.h
+++ b/gdb/ppc-tdep.h
@@ -305,6 +305,9 @@ enum {
PPC_NUM_REGS
};
+/* Big enough to hold the size of the largest register in bytes. */
+#define PPC_MAX_REGISTER_SIZE 64
+
/* An instruction to match. */
struct ppc_insn_pattern