From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27439 invoked by alias); 16 Mar 2009 11:21:47 -0000 Received: (qmail 26963 invoked by uid 22791); 16 Mar 2009 11:21:34 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_50,SARE_SPEC_PROLEO_M2 X-Spam-Check-By: sourceware.org Received: from smtp.idnet.com (HELO smtp-out.idnet.com) (212.69.36.238) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Mar 2009 11:21:17 +0000 Received: from localhost (unknown [127.0.0.1]) by smtp-out.idnet.com (Postfix) with ESMTP id DB99117039F for ; Mon, 16 Mar 2009 11:21:13 +0000 (UTC) Received: from smtp-out.idnet.com ([127.0.0.1]) by localhost (smtp-out.idnet.com [127.0.0.1]) (amavisd-new, port 10040) with LMTP id mts16jvOxtCB for ; Mon, 16 Mar 2009 11:21:11 +0000 (GMT) Received: from mail.idnet.net.uk (mail.idnet.net.uk [212.69.36.63]) by smtp-out.idnet.com (Postfix) with ESMTP id 959762D7F26 for ; Mon, 16 Mar 2009 11:21:11 +0000 (GMT) Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id ebubqqba for gdb-patches@sourceware.org; Mon, 16 Mar 2009 11:21:06 +0000 Subject: Patch to update gdbint.texinfo [03/04] From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb-patches@sourceware.org X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk Content-Type: text/plain Date: Mon, 16 Mar 2009 11:21:00 -0000 Message-Id: <1237202468.29424.38.camel@thomas> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00258.txt.bz2 This is the original image as SVG. 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.bak --exclude gdbint.texinfo --exclude stack-frame.pdf --exclude stack-frame.png --exclude stack-frame.txt src/gdb/doc/images/stack-frame.svg src-modified/gdb/doc/images/stack-frame.svg --- src/gdb/doc/images/stack-frame.svg 1970-01-01 01:00:00.000000000 +0100 +++ src-modified/gdb/doc/images/stack-frame.svg 2009-03-16 11:01:19.000000000 +0000 @@ -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 + + + + + + +