This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Revised patch to update gdbint.texinfo [04/04]
- From: Jeremy Bennett <jeremy dot bennett at embecosm dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 21 Sep 2008 19:29:29 +0100
- Subject: Revised patch to update gdbint.texinfo [04/04]
- Reply-to: jeremy dot bennett at embecosm dot com
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
+ | | |