On 11/30/05, Matthew Hannigan <[EMAIL PROTECTED]> wrote:
On Tue, Nov 29, 2005 at 01:13:48PM +1100, Beav Petrie wrote:
> I had seen the stacking up with gdb program, which I
> learned with no hassles. Now, I can't do without it in my

Excellent!  I was going to suggest going the 'low road'
to understanding recursion but weren't sure of your level
of knowledge of the lower end.  Shoulda asked I guess!


O Plameras had suggested gdb in previous post these easy to follow steps:

1. Compile as  cc -g factorial.c -o factorial ( I learned -g is required to run gdb).
2. Run gdb ./factorial
3. (gdb)break main
4. (gdb)r
5. (gdb)s           (I did  several times and bt each time)
6. (gdb)quit        (when done)

Did different combinations, too. Very, very cool. Learned lots.

Beav
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to