From f3dc8aa4eb29ea4838f73f3d91f924943deb6afa Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 4 Jul 2003 16:44:58 +0000 Subject: * rs6000-nat.c (vmap_symtab): Fix compilation error. --- gdb/ChangeLog | 4 ++++ gdb/rs6000-nat.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5d8f385..157a059 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-03 Joel Brobecker * remote-vx.c (vx_add_symbols): Fix compilation error. diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index e825529..ea24570 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); -- cgit v1.1