Multiple personalities gdb?
Elena Zannoni
ezannoni@cygnus.com
Fri Apr 21 16:03:00 GMT 2000
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
More information about the Gdb
mailing list