From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26939 invoked by alias); 18 Jan 2007 08:00:25 -0000 Received: (qmail 26930 invoked by uid 22791); 18 Jan 2007 08:00:25 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-01.spheriq.net (HELO lon-del-01.spheriq.net) (195.46.50.97) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Jan 2007 08:00:14 +0000 Received: from lon-out-03.spheriq.net ([195.46.50.131]) by lon-del-01.spheriq.net with ESMTP id l0I80Bje007680 for ; Thu, 18 Jan 2007 08:00:11 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-03.spheriq.net with ESMTP id l0I808K6032262 for ; Thu, 18 Jan 2007 08:00:09 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id l0I808Hw006800 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 18 Jan 2007 08:00:08 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 143ECDA43; Thu, 18 Jan 2007 08:00:06 +0000 (GMT) Received: from mail1.cro.st.com (mail1.cro.st.com [164.129.40.131]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 723D8472D4; Thu, 18 Jan 2007 08:00:06 +0000 (GMT) Received: from [10.18.180.51] (crx3051.cro.st.com [10.18.180.51]) by mail1.cro.st.com (MOS 3.5.8-GR) with ESMTP id CJL25616 (AUTH "frederic riss"); Thu, 18 Jan 2007 09:00:05 +0100 (CET) Subject: Re: [RFC] Prints the frame id when target stops From: Frederic RISS To: Vladimir Prus Cc: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Riss , gdb-patches@sources.redhat.com In-Reply-To: <200701180114.20338.ghost@cs.msu.su> References: <45AB9A7F.1090502@st.com> <1169071153.5155.71.camel@funkylaptop> <200701180114.20338.ghost@cs.msu.su> Content-Type: text/plain; charset=UTF-8 Date: Thu, 18 Jan 2007 08:00:00 -0000 Message-Id: <1169107204.3288.130.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 Content-Transfer-Encoding: 8bit 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/msg00397.txt.bz2 On Thu, 2007-01-18 at 01:14 +0300, Vladimir Prus wrote: > On Thursday 18 January 2007 00:59, Frédéric Riss wrote: > > If you just want to cache the result of -stack-list-frames, then you'd > > have to edit out the addr field which contains the frame's PC for the > > top frame... not very nice. > > Or introduce 'struct cached_result_of_stack_list_frames' that > can contain whatever I like and which can be conveniently edited. > > You've actually pointed a nice problem -- if frontend avoid -stack-list-frames > when frame id did not change, it will have stale address of the top frame too. Well, the frontend might not care about the exact PC (which it'll get anyway in the stop reason? can't remember), or it can request only the top frame which is basically free. Fred.