This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Avoid recursivly defined user functions.



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]