This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] alloca coding standard
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