Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Revised patch to update gdbint.texinfo [04/04]
@ 2008-09-21 18:34 Jeremy Bennett
  0 siblings, 0 replies; only message in thread
From: Jeremy Bennett @ 2008-09-21 18:34 UTC (permalink / raw)
  To: gdb-patches

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
+              |         |            |



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-21 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-21 18:34 Revised patch to update gdbint.texinfo [04/04] Jeremy Bennett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox