Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jeremy Bennett <jeremy.bennett@embecosm.com>
To: gdb-patches@sourceware.org
Subject: Revised patch to update gdbint.texinfo [04/04]
Date: Sun, 21 Sep 2008 18:34:00 -0000	[thread overview]
Message-ID: <1222021769.2827.576.camel@thomas> (raw)

This is the image as text.


Jeremy

-- 
Tel:      +44 (1202) 416955
Cell:     +44 (7970) 676050
SkypeID: jeremybennett
Email:   jeremy.bennett@embecosm.com
Web:     www.embecosm.com

diff -Naurp --exclude ChangeLog --exclude Entries --exclude Entries.Log --exclude Repository --exclude Root --exclude gdbint.texinfo --exclude stack-frame.pdf --exclude stack-frame.png --exclude stack-frame.svg --exclude gdbint.texinfo.bak src/gdb/doc/images/stack-frame.txt src-new/gdb/doc/images/stack-frame.txt
--- src/gdb/doc/images/stack-frame.txt	1970-01-01 01:00:00.000000000 +0100
+++ src-new/gdb/doc/images/stack-frame.txt	2008-09-21 18:27:32.000000000 +0100
@@ -0,0 +1,39 @@
+                 ^    ->|            |  ^
+Frame            |   |  |            |  |
+Number         - |   |  |============|  |    int fact (int n)
+              |  |   |  |   i = 3    |  |    {
+              |  |   |  |------------|  |      if (0 == n)
+              |  |   |  |   f = ?    |  |        {
+ #4 main()   <   |   |  |------------|  |          return  1;  <-------- PC
+              |  |   |  |     o------+--         }
+              |  |  -+->|------------|         else   
+              |   -+-+--+-----o      |           {
+               =   | |  |============|   --->      return n * fact (n - 1);
+              |    | |  |   n = 3    |  |        }
+              |    | |  |------------|  |    }
+ #3 fact (3) <     | |  |     o---------+-
+              |   -+-+->|------------|  | |  main ()
+              |  | |  --+-----o      |  | |  {
+               = | |    |============|  | |    int  i;
+              |  | |    |   n = 2    |  | |
+              |  | |    |------------|  | |    for (i = 0; i < 10; i++) {
+ #2 fact (2) <   | |    |     o------+--| |      {
+              |  | |  ->|------------|  |  ->      int  f = fact (i);
+              |  |  -+--+-----o      |  |          printf ("%d! = %d\n", i, f);
+               = |   |  |============|  |        }
+              |  |   |  |   n = 1    |  |    }
+              |  |   |  |------------|  |
+ #1 fact (1) <   |   |  |     o------+--|
+              |  |   |  |------------|  |
+              |   ---|--+-----o      |<-+------- FP
+               =     |  |============|  |                   |
+              |      |  |   n = 0    |  |                   |
+              |      |  |------------|  |                   |
+ #0 fact (0) <       |  |     o---------                    |
+              |      |  |------------|                      |
+              |       --+-----o      |<--------- SP         |
+               =        |============|                      |
+              |         |  Red Zone  |                      v  
+              |         \/\/\/\/\/\/\/                 Direction of
+ #-1         <          \/\/\/\/\/\/\/                 stack growth
+              |         |            |



                 reply	other threads:[~2008-09-21 18:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1222021769.2827.576.camel@thomas \
    --to=jeremy.bennett@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox