aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-nat.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-01 18:44:13 +0000
committerRichard Henderson <rth@redhat.com>2003-06-01 18:44:13 +0000
commit5ab8487279b4034ed8b1aa56cc36d25f5dbd5dd8 (patch)
treed9965908e23901293fff1e90871902ce2a0235e5 /gdb/alpha-nat.c
parent09cc52fd98e51eff95ed8de62dbe5c4c0ec73473 (diff)
downloadfsf-binutils-gdb-5ab8487279b4034ed8b1aa56cc36d25f5dbd5dd8.zip
fsf-binutils-gdb-5ab8487279b4034ed8b1aa56cc36d25f5dbd5dd8.tar.gz
fsf-binutils-gdb-5ab8487279b4034ed8b1aa56cc36d25f5dbd5dd8.tar.bz2
* alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
instead of ALPHA_MAX_REGISTER_RAW_SIZE. (supply_gregset): Likewise. * alpha-tdep.c (alpha_store_return_value): Likewise. (alpha_get_longjmp_target): Likewise. (alpha_register_name): Constify array. (alpha_gdbarch_init): Remove deprecated_fp_regnum, deprecated_register_size, deprecated_register_bytes, deprecated_max_register_raw_size, deprecated_max_register_virtual_size. * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove. (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
Diffstat (limited to 'gdb/alpha-nat.c')
-rw-r--r--gdb/alpha-nat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index af0a336..7c272b3 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -94,8 +94,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
EF_PC, -1
#endif
};
- static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] =
- {0};
+ static char zerobuf[ALPHA_REGISTER_SIZE] = {0};
for (regno = 0; regno < NUM_REGS; regno++)
{
@@ -202,8 +201,7 @@ supply_gregset (gdb_gregset_t *gregsetp)
{
register int regi;
register long *regp = ALPHA_REGSET_BASE (gregsetp);
- static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] =
- {0};
+ static char zerobuf[ALPHA_REGISTER_SIZE] = {0};
for (regi = 0; regi < 31; regi++)
supply_register (regi, (char *) (regp + regi));