From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26962 invoked by alias); 16 Mar 2009 11:21:33 -0000 Received: (qmail 26947 invoked by uid 22791); 16 Mar 2009 11:21:30 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 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:24 +0000 Received: from localhost (unknown [127.0.0.1]) by smtp-out.idnet.com (Postfix) with ESMTP id EE8062D7E01 for ; Mon, 16 Mar 2009 11:21:21 +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 D5teztomaOaX for ; Mon, 16 Mar 2009 11:21:21 +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 9522A2D7F77 for ; Mon, 16 Mar 2009 11:21:21 +0000 (GMT) Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id gdubqqba for gdb-patches@sourceware.org; Mon, 16 Mar 2009 11:21:17 +0000 Subject: Patch to update gdbint.texinfo [04/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: <1237202480.29424.39.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/msg00256.txt.bz2 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.bak --exclude gdbint.texinfo --exclude stack-frame.pdf --exclude stack-frame.png --exclude stack-frame.svg src/gdb/doc/images/stack-frame.txt src-modified/gdb/doc/images/stack-frame.txt --- src/gdb/doc/images/stack-frame.txt 1970-01-01 01:00:00.000000000 +0100 +++ src-modified/gdb/doc/images/stack-frame.txt 2009-03-16 11:01:19.000000000 +0000 @@ -0,0 +1,39 @@ + ^ ->| | +Frame | | | | +Number - | | |============| int fact (int n) + | | | | i = 3 | { + | | | |------------| if (0 == n) { + | | | | f = ? | return 1; <-------- PC + #4 main() < | | |------------| } + | | | | | else { + | | -+->|------------| ---> return n * fact (n - 1); + | -+-+--+-----o | | } + = | | |============| | } + | | | | n = 3 | | + | | | |------------| | main () + #3 fact (3) < | | | o---------+- { + | -+-+->|------------| | | int i; + | | | --+-----o | | | + = | | |============| | | for (i = 0; i < 10; i++) { + | | | | n = 2 | | -> int f = fact (i); + | | | |------------| | printf ("%d! = %d\n", i , f); + #2 fact (2) < | | | o------+--| } + | | | ->|------------| | } + | | -+--+-----o | | + = | | |============| | + | | | | n = 1 | | + | | | |------------| | + #1 fact (1) < | | | o------+--| + | | | |------------| | + | ---|--+-----o |<-+------- FP + = | |============| | | + | | | n = 0 | | | + | | |------------| | | + #0 fact (0) < | | o--------- | + | | |------------| | + | --+-----o |<--------- SP | + = |============| | + | | Red Zone | v + | \/\/\/\/\/\/\/ Direction of + #-1 < \/\/\/\/\/\/\/ stack growth + | | |