* rs6000-nat.c (vmap_symtab): Fix compilation error.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 16:42:59 +0000 (16:42 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 16:42:59 +0000 (16:42 +0000)
gdb/ChangeLog
gdb/rs6000-nat.c

index 68e585b..fefe1ab 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Joel Brobecker  <brobecker@gnat.com>
+
+       * rs6000-nat.c (vmap_symtab): Fix compilation error.
+
 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
 
        * config/i386/nto.mh: Set XM_FILE to xm-i386.h
index e825529..ea24570 100644 (file)
@@ -664,7 +664,9 @@ vmap_symtab (struct vmap *vp)
     /* If symbols are not yet loaded, offsets are not yet valid. */
     return;
 
-  new_offsets = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
+  new_offsets =
+    (struct section_offsets *)
+    alloca (SIZEOF_N_SECTION_OFFSETS (objfile->num_sections));
 
   for (i = 0; i < objfile->num_sections; ++i)
     new_offsets->offsets[i] = ANOFFSET (objfile->section_offsets, i);