Applied patch from David Edelsohn <dje@watson.ibm.com>.
authorKevin Buettner <kevinb@redhat.com>
Wed, 30 Aug 2000 20:35:26 +0000 (20:35 +0000)
committerKevin Buettner <kevinb@redhat.com>
Wed, 30 Aug 2000 20:35:26 +0000 (20:35 +0000)
gdb/ChangeLog
gdb/rs6000-nat.c

index c7360e1..c21f391 100644 (file)
@@ -1,3 +1,10 @@
+2000-08-30  David Edelsohn  <dje@watson.ibm.com>
+
+       Patch applied by Kevin Buettner <kevinb@redhat.com>:
+
+       * rs6000-nat.c (xcoff_relocate_symtab): Pass correct size
+       to xrealloc().
+
 2000-08-29  Michael Snyder  <msnyder@seadog.cygnus.com>
 
        * valops.c (value_cast): Indentation fix-up.
index f9a0b14..6fa4560 100644 (file)
@@ -931,7 +931,7 @@ xcoff_relocate_symtab (unsigned int pid)
   do
     {
       size = load_segs * ldisize;
-      ldi = (void *) xrealloc (ldi, load_segs * size);
+      ldi = (void *) xrealloc (ldi, size);
 
 #if 0
       /* According to my humble theory, AIX has some timing problems and