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 11:58:36 -0500
- CC: cagney at redhat dot com, gdb-patches at sources dot redhat dot com
- References: <3A38F8F3.7836222B@cygnus.com>
On 14-Dec-2000, Fernando Nasser wrote:
>Doesn't matter the number. At each time someone calls alloca() the garbage
>collection is done. So, only the last iteraction counts.
Wrong. If a single alloca() happens at the same stack depth multiple
times, as is quite likely when doing watchpoint checks, garbage collection
won't occur.
Nick