This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Multiple personalities gdb?
Jim Blandy writes:
>
> What's more, the GNU coding standards actually prohibit the
> introduction of "arbitrary limits" of exactly this sort. Those arrays
> should definitely be dynamically grown.
Yes, I have spent some time today looking over what needs to be done
to clean this up.
In reality even the section_offsets are allocated with the fixed size of
SECT_OFF_MAX:
For instance,
pst->section_offsets = (struct section_offsets *)
obstack_alloc (&objfile->psymbol_obstack, SIZEOF_SECTION_OFFSETS);
Where:
#define SIZEOF_SECTION_OFFSETS \
(sizeof (struct section_offsets) \
+ sizeof (((struct section_offsets *) 0)->offsets) * (SECT_OFF_MAX-1))
So this is not so simple as it may seem. I'll see what I can do during
the coming week.
Elena