From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1874 invoked by alias); 3 Mar 2005 14:17:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1578 invoked from network); 3 Mar 2005 14:16:36 -0000 Received: from unknown (HELO pluton.ispras.ru) (83.149.199.253) by sourceware.org with SMTP; 3 Mar 2005 14:16:36 -0000 Received: (qmail 6358 invoked from network); 3 Mar 2005 14:13:11 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 3 Mar 2005 14:13:11 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with SMTP id j23ECpNt019883 for ; Thu, 3 Mar 2005 17:12:51 +0300 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j23ECpDF019877 for ; Thu, 3 Mar 2005 17:12:51 +0300 Received: from ispserv.ispras.ru (localhost [127.0.0.1]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j23EAZDA022153 for ; Thu, 3 Mar 2005 17:10:35 +0300 Received: from localhost (kostik@localhost) by ispserv.ispras.ru (8.12.8/8.12.8/Submit) with ESMTP id j23EAZt9022149 for ; Thu, 3 Mar 2005 17:10:35 +0300 X-Authentication-Warning: ispserv.ispras.ru: kostik owned process doing -bs Date: Thu, 03 Mar 2005 14:17:00 -0000 From: Karganov Konstantin To: gdb@sources.redhat.com Subject: Broken MI output Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-SW-Source: 2005-03/txt/msg00020.txt.bz2 Hello. I tried to run hello-world application under "gdb -i=mi" and got the following: ------------------------- ~"GNU gdb 6.3\n" ~"Copyright 2004 Free Software Foundation, Inc.\n" ~"GDB is free software, covered by the GNU General Public License, and you are\n" ~"welcome to change it and/or distribute copies of it under certain conditions.\n" ~"Type \"show copying\" to see the conditions.\n" ~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" ~"This GDB was configured as \"i686-pc-linux-gnu\"..." ~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n" ~"\n" (gdb) run &"run\n" Hello world! ~"Current language: auto; currently c\n" ^done,reason="exited-normally" (gdb) ------------------------- Two lines here are out of the grammar syntax: "run" line, that is only echo of the terminal, that doesnt go out of the debugger (presents only in debugger stdin) and the " Hello world!" line that is an application output mixed with MI output. The second line goes out of the debugger stdout and surely breaks MI-parser. Am I right that this is a bug ("@ c-string" format is missing) that needs to be fixed? Thanks. Konstantin.