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: ac131313 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 02:24:33 -0500
- CC: cagney at redhat dot com, gdb-patches at sources dot redhat dot com
- References: <3A383D4F.8AE4C346@cygnus.com>
On 14-Dec-2000, Andrew Cagney wrote:
>Shouldn't such a thing be part of the event loop (or very close to it?).
I'm not familiar enough with the event loop to know. The "Memory
Allocation" documentation patch I posted says this:
Each interface to the GDB core -- for example, GDBTK, libgdb, and the
text console -- should ensure that `alloca (0)' is called periodically.
In addition, GDB calls `alloca (0)' once per inferior wait.
Are you suggesting that alloca(0) be called somewhere other than the
bottom of the wait-for-inferior loop? Or are you suggesting that it be
called somewhere in addition to there?
Nick