diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-08 22:33:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-08 22:33:14 +0000 |
commit | 123a958e016784942d494e94a55827db9c11fd9a (patch) | |
tree | 3602d47a73423eacac376227d4361d05907dd85b /gdb/mipsv4-nat.c | |
parent | eb294659eb81c6e37c4efb5a3f9d6c3f94857b2e (diff) | |
download | gdb-123a958e016784942d494e94a55827db9c11fd9a.zip gdb-123a958e016784942d494e94a55827db9c11fd9a.tar.gz gdb-123a958e016784942d494e94a55827db9c11fd9a.tar.bz2 |
2003-05-08 Andrew Cagney <cagney@redhat.com>
* regcache.h (max_register_size): Delete declaration.
* regcache.c (max_register_size): Delete function.
(struct regcache_descr): Delete field "max_register_size".
(init_regcache_descr, init_legacy_regcache_descr): Assert that all
registers fit in MAX_REGISTER_SIZE.
(regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
(regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
* thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
* sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
* remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
* m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
* hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
* dve3900-rom.c, hppa-tdep.c: Ditto.
Diffstat (limited to 'gdb/mipsv4-nat.c')
-rw-r--r-- | gdb/mipsv4-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/mipsv4-nat.c b/gdb/mipsv4-nat.c index 874bef4..65ffa0d 100644 --- a/gdb/mipsv4-nat.c +++ b/gdb/mipsv4-nat.c @@ -47,8 +47,8 @@ supply_gregset (gregset_t *gregsetp) { register int regi; register greg_t *regp = &(*gregsetp)[0]; - char *zerobuf = alloca (max_register_size (current_gdbarch)); - memset (zerobuf, 0, max_register_size (current_gdbarch)); + char zerobuf[MAX_REGISTER_SIZE]; + memset (zerobuf, 0, MAX_REGISTER_SIZE); for (regi = 0; regi <= CXT_RA; regi++) supply_register (regi, (char *) (regp + regi)); @@ -102,8 +102,8 @@ void supply_fpregset (fpregset_t *fpregsetp) { register int regi; - char *zerobuf = alloca (max_register_size (current_gdbarch)); - memset (zerobuf, 0, max_register_size (current_gdbarch)); + char zerobuf[MAX_REGISTER_SIZE]; + memset (zerobuf, 0, MAX_REGISTER_SIZE); for (regi = 0; regi < 32; regi++) supply_register (FP0_REGNUM + regi, |