This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Move alloca(0) to wait_for_inferior() from registers_changed()
- To: fnasser at cygnus dot com
- Subject: Re: [RFA] Move alloca(0) to wait_for_inferior() from registers_changed()
- From: Nick Duffek <nsd at redhat dot com>
- Date: Thu, 14 Dec 2000 14:22:00 -0500
- CC: cagney at redhat dot com, gdb-patches at sources dot redhat dot com
- References: <3A391701.DDF6064B@cygnus.com>
On 14-Dec-2000, Fernando Nasser wrote:
>Instead of trying to fit a alloca(0) somewhere, it would be better to get
>rid of the alloca() in this code.
"this code" is everything that can be called during the
wait_for_inferior() loop, which is most of GDB.
I think the only feasible way to implement your suggestion would be to get
rid of all occurrences of alloca(), which we've already decided not to do.
Nick