This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Avoid recursivly defined user functions.
- From: Paul Hilfinger <hilfingr at EECS dot Berkeley dot EDU>
- To: Don Howard <dhoward at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 03 Apr 2002 14:36:09 -0800
- Subject: Re: [RFA] Avoid recursivly defined user functions.
- Reply-to: Hilfinger at cs dot berkeley dot edu
> Executing a recursively defined user function results in a core-dump from
> gdb:
...
> The following patch catches recursive user function definitions and
> disallowes them:
Is the segmentation fault the result of stack overflow? If so, I
point out that there is an 'if' statement, so recursive commands are
not necessarily wrong, are they?
P. Hilfinger