aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-07-04 16:44:58 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-07-04 16:44:58 +0000
commitf3dc8aa4eb29ea4838f73f3d91f924943deb6afa (patch)
tree4184787cc823741bc0fc5b53cc3dd5e502d91c53 /gdb/rs6000-nat.c
parenta9a6215b27c93266468007c0c26accc6fe0c1b6b (diff)
downloadgdb-f3dc8aa4eb29ea4838f73f3d91f924943deb6afa.zip
gdb-f3dc8aa4eb29ea4838f73f3d91f924943deb6afa.tar.gz
gdb-f3dc8aa4eb29ea4838f73f3d91f924943deb6afa.tar.bz2
* rs6000-nat.c (vmap_symtab): Fix compilation error.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c4
1 files changed, 3 insertions, 1 deletions
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);