From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 541 invoked by alias); 17 Jan 2007 08:26:15 -0000 Received: (qmail 529 invoked by uid 22791); 17 Jan 2007 08:26:15 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Jan 2007 08:26:03 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-02.spheriq.net with ESMTP id l0H8Q07p032459 for ; Wed, 17 Jan 2007 08:26:00 GMT Received: from lon-cus-02.spheriq.net (lon-cus-02.spheriq.net [195.46.50.38]) by lon-out-02.spheriq.net with ESMTP id l0H8Pvac002356 for ; Wed, 17 Jan 2007 08:25:59 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-02.spheriq.net with ESMTP id l0H8PrPS006980 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 17 Jan 2007 08:25:54 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 CB3BFDA54; Wed, 17 Jan 2007 08:25:29 +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 5305C47305; Wed, 17 Jan 2007 08:25:29 +0000 (GMT) Received: from [164.129.44.95] (crx595.cro.st.com [164.129.44.95]) by mail1.cro.st.com (MOS 3.5.8-GR) with ESMTP id CJL01105 (AUTH "denis pilat"); Wed, 17 Jan 2007 09:25:28 +0100 (CET) Message-ID: <45ADDD77.8070505@st.com> Date: Wed, 17 Jan 2007 08:26:00 -0000 From: Denis PILAT User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: Nick Roberts Cc: gdb-patches Subject: Re: [RFC] Prints the frame id when target stops References: <45AB9A7F.1090502@st.com> <17835.62476.374968.62992@kahikatea.snap.net.nz> <17836.2558.833856.471765@kahikatea.snap.net.nz> <17836.4836.53782.408349@kahikatea.snap.net.nz> In-Reply-To: <17836.4836.53782.408349@kahikatea.snap.net.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00384.txt.bz2 Nick Roberts wrote: > > Also it looks like you can't use ui_out_field_string as it prints CLI output > > also (when execeution stop, "info threads" etc). Perhaps ui_out_field_stream > > does what you need. > > Or, more likely, wrap it in: > > if (ui_out_is_mi_like_p (uiout)) > { > ... > } > > You're right, my patch do much more printing than I expected. I don't want to modify behavior of too much commands. According to last discussion it seems to be hard to cache information returned by -stack-list-frame, may be we could print this frame id information when the program stop only if stop reason is step or next. Then it's up to the front end to be clever not refreshing the stack frame. Denis