]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* rs6000-nat.c (vmap_symtab): Fix compilation error.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 16:44:58 +0000 (16:44 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 4 Jul 2003 16:44:58 +0000 (16:44 +0000)
gdb/ChangeLog
gdb/rs6000-nat.c

index 5d8f38540e78bf3a95fabe09d7991c4ec33ca564..157a059379905fafb850a366f374dc792480f66d 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-04  Joel Brobecker  <brobecker@gnat.com>
+
+       * rs6000-nat.c (vmap_symtab): Fix compilation error.
+
 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
 
        * remote-vx.c (vx_add_symbols): Fix compilation error.
index e825529ba95876f257149662828946ccb7574a17..ea2457040aafe2fb8fd48371ec0ffadb3c9eda73 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);