From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30852 invoked by alias); 24 Apr 2008 00:40:57 -0000 Received: (qmail 30843 invoked by uid 22791); 24 Apr 2008 00:40:57 -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; Thu, 24 Apr 2008 00:40:23 +0000 Received: from kahikatea.snap.net.nz (190.30.255.123.static.snap.net.nz [123.255.30.190]) by viper.snap.net.nz (Postfix) with ESMTP id B67EF3DB27A; Thu, 24 Apr 2008 12:40:20 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 81C8D8FC6D; Thu, 24 Apr 2008 12:40:13 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18447.55020.579472.126616@kahikatea.snap.net.nz> Date: Thu, 24 Apr 2008 01:48:00 -0000 To: Daniel Jacobowitz , gdb-patches@sourceware.org Subject: Re: [PATCH] -stack-info-frame/-stack-list-frames In-Reply-To: <18447.50396.538278.140944@kahikatea.snap.net.nz> References: <18446.45778.889114.789630@kahikatea.snap.net.nz> <200804230933.04964.vladimir@codesourcery.com> <18446.63716.779534.2827@kahikatea.snap.net.nz> <200804231349.35190.vladimir@codesourcery.com> <18447.12269.389044.431822@kahikatea.snap.net.nz> <20080423125410.GA19773@caradoc.them.org> <18447.46315.956290.915310@kahikatea.snap.net.nz> <20080423222414.GA23569@caradoc.them.org> <18447.50396.538278.140944@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/msg00543.txt.bz2 > > If you want to know which frame the varobj is associated with GDB > > should supply some unique opaque identifier, and then the IDE can > > use that to show the frame number in a tooltip or wherever. > > Do you mean use something like uuidgen to associate a key with a frame > and output that as a field for a variable object? Actually it just needs to be a non-zero value for frames in which a varobj is created. Perhaps a member of struct frame_id, int varobj_frame say, which increments when a varobj is created in a new frame. This could also then be used to see if a varobj has gone out of scope to avoid the ambiguities Jim Blandy talked about from using frame_find_by_id. Perhaps this is what you are suggesting, anyway. -- Nick http://www.inet.net.nz/~nickrob