diff options
Diffstat (limited to 'gdb/somread.c')
-rw-r--r-- | gdb/somread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/somread.c b/gdb/somread.c index ab8d531..4951f10 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -435,9 +435,7 @@ som_symfile_offsets (objfile, addr) objfile->num_sections = SECT_OFF_MAX; section_offsets = (struct section_offsets *) - obstack_alloc (&objfile -> psymbol_obstack, - sizeof (struct section_offsets) - + sizeof (section_offsets->offsets) * (SECT_OFF_MAX-1)); + obstack_alloc (&objfile -> psymbol_obstack, SIZEOF_SECTION_OFFSETS); /* First see if we're a shared library. If so, get the section offsets from the library, else get them from addr. */ |