From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5300 invoked by alias); 15 Jan 2007 23:49:07 -0000 Received: (qmail 5286 invoked by uid 22791); 15 Jan 2007 23:49:07 -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; Mon, 15 Jan 2007 23:48:57 +0000 Received: from kahikatea.snap.net.nz (unknown [123.255.60.144]) by viper.snap.net.nz (Postfix) with ESMTP id E3A2E3D927E; Tue, 16 Jan 2007 12:48:54 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 02F2E4F715; Tue, 16 Jan 2007 12:48:53 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17836.4836.53782.408349@kahikatea.snap.net.nz> Date: Mon, 15 Jan 2007 23:49:00 -0000 To: Denis PILAT , gdb-patches Subject: Re: [RFC] Prints the frame id when target stops In-Reply-To: <17836.2558.833856.471765@kahikatea.snap.net.nz> References: <45AB9A7F.1090502@st.com> <17835.62476.374968.62992@kahikatea.snap.net.nz> <17836.2558.833856.471765@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.92.9 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/msg00350.txt.bz2 > 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)) { ... } -- Nick http://www.inet.net.nz/~nickrob