* rs6000-nat.c (vmap_symtab): Fix compilation error.

This commit is contained in:
Joel Brobecker 2003-07-04 16:42:59 +00:00
parent 3a51fda661
commit 9f83329d30
2 changed files with 7 additions and 1 deletions

View 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

View 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);