From: Joel Brobecker Date: Fri, 4 Jul 2003 16:42:59 +0000 (+0000) Subject: * rs6000-nat.c (vmap_symtab): Fix compilation error. X-Git-Tag: ezannoni_pie-20030916-branchpoint~880 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f83329d30d1a0473ccddd13d833603f062486f2;p=thirdparty%2Fbinutils-gdb.git * rs6000-nat.c (vmap_symtab): Fix compilation error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68e585bb791..fefe1ab4e05 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-07-04 Joel Brobecker + + * rs6000-nat.c (vmap_symtab): Fix compilation error. + 2003-07-04 Kris Warkentin * config/i386/nto.mh: Set XM_FILE to xm-i386.h diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index e825529ba95..ea2457040aa 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -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);