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.


On Tue, 9 Apr 2002, Paul Hilfinger wrote:

> 
> > How about something even simpler - track user command depth at runtime? 
> > Set an absurd limit, like 1024 deep, if we can handle that in a
> > normal-sized stack limit.  Then complain if we hit it at runtime.
> 
> I completely agree with this.  After all, if you were willing to
> contemplate outlawing recursion altogether, you certainly won't LOSE
> anything by Daniel's approach, and you gain everything you wanted in
> the first place---to avoid crashing GDB.  
> 
> Paul
> 


I like this approach, also.  


-- 
dhoward@redhat.com
gdb engineering



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