[RFA] alloca coding standard
Fernando Nasser
fnasser@cygnus.com
Mon Nov 13 07:13:00 GMT 2000
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
More information about the Gdb
mailing list