From 587afa3811369858cb484ed0cd228ae650b9aaaf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 21 Mar 2009 10:24:35 +0000 Subject: From Jeremy Bennett : * gdbint.texinfo (everywhere): Use braces {} in @deftypeXX type field throughout to handle types with spaces in them. Fix typos found by aspell. (Summary, Requirements, Contributors): New first chapter, "Summary" added, old Requirements section moved there, and new section, "Contributors" added. (Initializing a New Architecture, Register Representation) (Frame Interpretation, Inferior Call Setup, Adding a New Target) (Porting gdb): These sections extended and updated. (Compiler Characteristics): This section (empty) deleted. (Defining Other Architecture Features): This section renamed and duplicate material removed from (formerly "Target Conditionals"). Use braces {} in @deftypeXX type field throughout to handle types with spaces in them. Typos found by aspell fixed. * stack_frame.svg: New file, source of image for gdbint.texinfo. * stack_frame.pdf: Version of image for PDF output. * stack_frame.png: Version of image for HTML output and for Emacs. * stack_frame.txt: Version of image for Info output. --- gdb/doc/stack_frame.svg | 866 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 866 insertions(+) create mode 100644 gdb/doc/stack_frame.svg (limited to 'gdb/doc/stack_frame.svg') diff --git a/gdb/doc/stack_frame.svg b/gdb/doc/stack_frame.svg new file mode 100644 index 00000000000..ddc1e0a5f82 --- /dev/null +++ b/gdb/doc/stack_frame.svg @@ -0,0 +1,866 @@ + + + + + + + + + + + + + + + + image/svg+xml + + + Overview of a Stack Frame + 16 March 2009 + + + Jeremy Bennett + + + + + Free Software Foundation + + + + + Free Software Foundation + + + www.gnu.org + + + stack + frame + + + A diagram showing all the key features of a stack frame in a compiled l + + + Jeremy Bennett + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + n = 0 + n = 1 + n = 2 + n = 3 + i = 3 + int fact( int n ){ if( 0 == n ) { return 1; } else { return n * fact( n - 1 ); }}main(){ int i; for( i = 0 ; i < 10 ; i++ ) { int f = fact( i ); printf( "%d! = %d\n", i, f ); }} + + + + + + + + + + + + + + + + + + + + + + + + + + FP + PC + SP + + + + + + + + fact (0) + fact (1) + fact (2) + fact (3) + main () + + #-1 + #0 + #1 + #2 + #3 + #4 + FrameNumber + Direction ofstack growth + + f = ? + + Red Zone + + + + + + + -- cgit v1.2.1