From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1430 invoked by alias); 26 Jun 2008 16:25:10 -0000 Received: (qmail 1416 invoked by uid 22791); 26 Jun 2008 16:25:09 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Jun 2008 16:24:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C8ADF2A964F; Thu, 26 Jun 2008 12:24:50 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SoF7BWEF3JOR; Thu, 26 Jun 2008 12:24:50 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 216D12A95DF; Thu, 26 Jun 2008 12:24:50 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id E6D9CE7ACD; Thu, 26 Jun 2008 12:24:49 -0400 (EDT) Date: Thu, 26 Jun 2008 16:25:00 -0000 From: Joel Brobecker To: Pavel Chernikov Cc: gdb@sourceware.org Subject: Re: gdb / dbx / pstack question - getting function argument addresses from stack Message-ID: <20080626162449.GF3595@adacore.com> References: <7611a2ff0806260620k4e4f6765l6a306c7e363fa12e@mail.gmail.com> <20080626142633.GB3595@adacore.com> <7611a2ff0806260803q226a05f8s833d9907d42e589c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7611a2ff0806260803q226a05f8s833d9907d42e589c@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00279.txt.bz2 > Thanks for the reply! It's starting to make sense... Would you mind > elaborating on "issue a series of print commands"? I'm not sure of > what exactly I need to print... You want to print the value of the input registers. They should be accessible through the $i0, $i1, ... convenience variables. In other words: (gdb) print /x $i0 $1 = 0xfeedface (for instance). While going from frame to frame, just print the value of all input register. Your script can then parse the output, collect the information you're looking for, and then produce the output you want. -- Joel