2002-08-15 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 16 Aug 2002 02:01:50 +0000 (02:01 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 16 Aug 2002 02:01:50 +0000 (02:01 +0000)
* irix5-nat.c (supply_gregset): Allocate plenty-big buffer
(32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
(supply_fpregset): Ditto.

gdb/ChangeLog
gdb/irix5-nat.c

index d8527bbfb029595b5b7ceb9a415ecace292202e3..f7c3e51d9ca70e7b531fc8ecf09fe0fbc5daee10 100644 (file)
@@ -1,5 +1,9 @@
 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.
+       
        * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
        REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
        MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
index b98ec5ab5219105fae90defc6332c23476df4b4b..d5b5c0c1c4decbe10645db918c4d48dffa5d4432 100644 (file)
@@ -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. */