mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
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.
This commit is contained in:
@ -497,7 +497,7 @@ fetch_register (struct regcache *regcache, int tid, int regno)
|
||||
CORE_ADDR regaddr = ppc_register_u_addr (gdbarch, regno);
|
||||
int bytes_transferred;
|
||||
unsigned int offset; /* Offset of registers within the u area. */
|
||||
gdb_byte buf[MAX_REGISTER_SIZE];
|
||||
gdb_byte buf[PPC_MAX_REGISTER_SIZE];
|
||||
|
||||
if (altivec_register_p (gdbarch, regno))
|
||||
{
|
||||
@ -979,7 +979,7 @@ store_register (const struct regcache *regcache, int tid, int regno)
|
||||
CORE_ADDR regaddr = ppc_register_u_addr (gdbarch, regno);
|
||||
int i;
|
||||
size_t bytes_to_transfer;
|
||||
gdb_byte buf[MAX_REGISTER_SIZE];
|
||||
gdb_byte buf[PPC_MAX_REGISTER_SIZE];
|
||||
|
||||
if (altivec_register_p (gdbarch, regno))
|
||||
{
|
||||
|
Reference in New Issue
Block a user