From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2365 invoked by alias); 23 Apr 2008 05:03:50 -0000 Received: (qmail 2341 invoked by uid 22791); 23 Apr 2008 05:03:49 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 23 Apr 2008 05:03:23 +0000 Received: from kahikatea.snap.net.nz (135.31.255.123.static.snap.net.nz [123.255.31.135]) by viper.snap.net.nz (Postfix) with ESMTP id 3313A3DA791; Wed, 23 Apr 2008 17:03:16 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 151A08FC6D; Wed, 23 Apr 2008 17:03:11 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18446.49934.972945.419064@kahikatea.snap.net.nz> Date: Wed, 23 Apr 2008 06:03:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] -stack-info-frame/-stack-list-frames In-Reply-To: References: <18446.45778.889114.789630@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.2.50.2 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: 2008-04/txt/msg00498.txt.bz2 > > Here's a patch to add the frame address to the output of -stack-info-frame > > and -stack-list-frames and async output when execution stops. It also > > outputs the source language for -stack-info-frame, these change making it > > more like "info frame": > > Could you first clarify that is the purpose of said fields -- especially > frame address? The frame address is probably of more interest than the pc address, at least for frames other than the current one. If the call stack includes the frame address for each frame and the watch window gives the variable's address then it is possible to infer to which frame that variable belongs. In any case, the extra field comes at almost no cost and a frontend can choose to ignore it. -- Nick http://www.inet.net.nz/~nickrob