From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32126 invoked by alias); 18 Jan 2007 21:13:43 -0000 Received: (qmail 32112 invoked by uid 22791); 18 Jan 2007 21:13:42 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Jan 2007 21:13:29 +0000 Received: from kahikatea.snap.net.nz (unknown [123.255.61.57]) by viper.snap.net.nz (Postfix) with ESMTP id 88A553D82E1; Fri, 19 Jan 2007 10:13:26 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 340ED4F711; Fri, 19 Jan 2007 10:13:25 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17839.58101.93989.446811@kahikatea.snap.net.nz> Date: Thu, 18 Jan 2007 21:13:00 -0000 To: Daniel Jacobowitz Cc: Vladimir Prus , Denis PILAT , gdb-patches@sources.redhat.com Subject: Re: [RFC] Prints the frame id when target stops In-Reply-To: <20070117061903.GE19331@nevyn.them.org> References: <45AB9A7F.1090502@st.com> <17837.16328.46414.146270@kahikatea.snap.net.nz> <20070117061903.GE19331@nevyn.them.org> X-Mailer: VM 7.19 under Emacs 22.0.92.10 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: 2007-01/txt/msg00405.txt.bz2 > > More recently I looked at Apple's approach which seems to just add a hook > > in select_frame: > > > > http://sourceware.org/ml/gdb-patches/2007-01/msg00037.html > > I think that's actually their solution to a different problem than this > one. They have two hooks; the above one is just to see if the frame has changed and tells you if the locals window needs updating, for example. In the example you give, I think the frame has not changed but the stack has. They have another hook for detecting when the stack has changed which gets set in return_command and normal_stop. This latter location uses frame_id_eq so maybe it will fail for your example (Perhaps it works for Apple, if they have their own unwinder, although at this point I don't really know what I'm talking about). -- Nick http://www.inet.net.nz/~nickrob