This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [RFA] rs6000-nat.c fix for large symtabs.
- To: Chris Faylor <cgf at cygnus dot com>
- Subject: Re: [RFA] rs6000-nat.c fix for large symtabs.
- From: gkm at cygnus dot com (glen mccready)
- Date: Fri, 07 Apr 2000 17:37:36 -0700
- Cc: gdb-patches at sourceware dot cygnus dot com
>On Fri, Apr 07, 2000 at 02:42:45PM -0700, glen mccready wrote:
>>
>>Some processes have more than 64 load segments; in the past gdb
>>would fail under these circumstances. This patch should alleviate
>>that problem by expanding the buffer if the ld_info won't fit.
>
>Would it be feasible to do this with malloc/realloc instead of alloca in
>this case? Otherwise you could be wasting a lot of stack space.
I was considering that, but that's why the alloca() and ldi pointer
are defined within the do-while scope; the space should be recovered
each time through the loop.
malloc/realloc would certainly be an alternative, though.
glen