mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* rs6000-nat.c (vmap_symtab): Fix compilation error.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user