diff options
author | Joel Brobecker <brobecker@gnat.com> | 2003-07-04 16:42:59 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2003-07-04 16:42:59 +0000 |
commit | 9f83329d30d1a0473ccddd13d833603f062486f2 (patch) | |
tree | 07dbc3e00911fd627acd2468a437d6e17aaa51fd /gdb/rs6000-nat.c | |
parent | 3a51fda6618deaecb1fba81789b4913ee2e4eba0 (diff) | |
download | gdb-9f83329d30d1a0473ccddd13d833603f062486f2.zip gdb-9f83329d30d1a0473ccddd13d833603f062486f2.tar.gz gdb-9f83329d30d1a0473ccddd13d833603f062486f2.tar.bz2 |
* rs6000-nat.c (vmap_symtab): Fix compilation error.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 4 |
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); |