From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: Nick Duffek Cc: gdb@sources.redhat.com Subject: Re: [RFA] alloca coding standard Date: Mon, 13 Nov 2000 07:13:00 -0000 Message-id: <3A1004F0.B00504A3@cygnus.com> References: <3A0CE1DB.6F6B1E93@cygnus.com> <200011130654.eAD6sjV16467@rtl.cygnus.com> X-SW-Source: 2000-11/msg00121.html Nick Duffek wrote: > > - Moves an alloca (0) call from registers_changed() to > wait_for_inferior(), so that the documentation can say: > > "For systems that use libiberty's alloca emulation, it is important > that alloca be called when the stack is shallow to garbage-collect > freed space. As of this writing, GDB calls alloc (0) once per user > command and once per inferior wait." > What user command? The GUI ad other script languages call random functions in GDB. And their command loops may even be in another process! You must also explain how alloca(0) will work in libgdb. -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9