diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-08-16 02:01:50 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-08-16 02:01:50 +0000 |
commit | 466d7106f65b1d5afaee478a1cd8f2a7557690fc (patch) | |
tree | 2ab514a081359942293a3082fbc69d76d6b096f5 /gdb/irix5-nat.c | |
parent | d05285fac91883ea92579fcb9075bedbea18c272 (diff) | |
download | gdb-466d7106f65b1d5afaee478a1cd8f2a7557690fc.zip gdb-466d7106f65b1d5afaee478a1cd8f2a7557690fc.tar.gz gdb-466d7106f65b1d5afaee478a1cd8f2a7557690fc.tar.bz2 |
2002-08-15 Michael Snyder <msnyder@redhat.com>
* irix5-nat.c (supply_gregset): Allocate plenty-big buffer
(32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
(supply_fpregset): Ditto.
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r-- | gdb/irix5-nat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index b98ec5a..d5b5c0c 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -56,8 +56,7 @@ supply_gregset (gregset_t *gregsetp) register int regi; register greg_t *regp = &(*gregsetp)[0]; int gregoff = sizeof (greg_t) - MIPS_REGSIZE; - static char zerobuf[MAX_REGISTER_RAW_SIZE] = - {0}; + static char zerobuf[32] = {0}; for (regi = 0; regi <= CTX_RA; regi++) supply_register (regi, (char *) (regp + regi) + gregoff); @@ -120,8 +119,7 @@ void supply_fpregset (fpregset_t *fpregsetp) { register int regi; - static char zerobuf[MAX_REGISTER_RAW_SIZE] = - {0}; + static char zerobuf[32] = {0}; /* FIXME, this is wrong for the N32 ABI which has 64 bit FP regs. */ |