From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24600 invoked by alias); 15 Jan 2007 23:11:14 -0000 Received: (qmail 24589 invoked by uid 22791); 15 Jan 2007 23:11:13 -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:11:04 +0000 Received: from kahikatea.snap.net.nz (unknown [123.255.60.144]) by viper.snap.net.nz (Postfix) with ESMTP id EE8753D8A44; Tue, 16 Jan 2007 12:10:58 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id A91A84F715; Tue, 16 Jan 2007 12:10:57 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17836.2558.833856.471765@kahikatea.snap.net.nz> Date: Mon, 15 Jan 2007 23:11:00 -0000 To: Denis PILAT , gdb-patches Subject: Re: [RFC] Prints the frame id when target stops In-Reply-To: <17835.62476.374968.62992@kahikatea.snap.net.nz> References: <45AB9A7F.1090502@st.com> <17835.62476.374968.62992@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/msg00349.txt.bz2 > frame_id_str = xstrprintf ("%s,%s,%s", > ^^^^^^^^^^ > > "%x,%x,%x" ? (Except this would break when paddr returned 0, so it > needs a bit more detail). I mean this_frame_id.*_p is 0. >... > If this field is included in other output e.g -stack-info-frame, then maybe > a separate function would be a good idea. Forget this, I see these functions use print_frame anyway. 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. -- Nick http://www.inet.net.nz/~nickrob