From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7869 invoked by alias); 25 Mar 2008 01:29:04 -0000 Received: (qmail 7861 invoked by uid 22791); 25 Mar 2008 01:29:03 -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; Tue, 25 Mar 2008 01:28:38 +0000 Received: from kahikatea.snap.net.nz (228.31.255.123.static.snap.net.nz [123.255.31.228]) by viper.snap.net.nz (Postfix) with ESMTP id 2BCC73D8081; Tue, 25 Mar 2008 14:28:36 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 644AF8FC6D; Tue, 25 Mar 2008 13:28:27 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18408.21818.695835.725321@kahikatea.snap.net.nz> Date: Tue, 25 Mar 2008 01:29:00 -0000 To: Daniel Jacobowitz Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: cleanup mi error message handling In-Reply-To: <20080325005941.GA27677@caradoc.them.org> References: <200803241830.11759.pedro@codesourcery.com> <18408.9553.683746.929167@kahikatea.snap.net.nz> <20080324223840.GA20307@caradoc.them.org> <18408.15132.721049.31408@kahikatea.snap.net.nz> <20080325005941.GA27677@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.1.92.2 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: 2008-03/txt/msg00375.txt.bz2 > > Just as you say if the "frontend wants to display this error to the user > > in the console, it can do so anyway" isn't it equally true that if it > > doesn't want to display this error, it can choose not to so? > > Yes, but unlike a formatted MI response, the front end doesn't know > what a random bit of ~"output" is. It might be a notification, like a > new thread, or an error message, or... Errors aren't CONSOLE-STREAM-OUTPUT but LOG-STREAM-OUTPUT and are prefixed with `&' not `~': &"The program is not being run.\n" ^error,msg="The program is not being run." (gdb) =thread-created,id=2 ~"[New Thread 0xb7568b90 (LWP 19810)]\n" -- Nick http://www.inet.net.nz/~nickrob