From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2772 invoked by alias); 7 Apr 2006 15:54:47 -0000 Received: (qmail 2757 invoked by uid 22791); 7 Apr 2006 15:54:47 -0000 X-Spam-Check-By: sourceware.org Received: from nproxy.gmail.com (HELO nproxy.gmail.com) (64.233.182.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Apr 2006 15:54:45 +0000 Received: by nproxy.gmail.com with SMTP id i2so280372nfe for ; Fri, 07 Apr 2006 08:54:42 -0700 (PDT) Received: by 10.49.64.20 with SMTP id r20mr1189908nfk; Fri, 07 Apr 2006 08:54:42 -0700 (PDT) Received: from ?192.168.178.25? ( [195.4.52.145]) by mx.gmail.com with ESMTP id k23sm1165794nfc.2006.04.07.08.54.40; Fri, 07 Apr 2006 08:54:41 -0700 (PDT) Message-ID: <44368B51.1030707@gmail.com> Date: Fri, 07 Apr 2006 16:02:00 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) MIME-Version: 1.0 To: gdb@sourceware.org Subject: MI return error changed from 6.3 to 6.4? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Dirk Behme X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00103.txt.bz2 Hello, after upgrade from GDB 6.3 to 6.4 I noticed that the error return behavior of MI interface invoked by "--interpreter=mi" changed. While with 6.3 an "^error" was returned which can be used by programs to react, 6.4 only returns "^done": GDB 6.3: (gdb) ererwrererwrewr &"ererwrererwrewr\n" &"Undefined command: \"ererwrererwrewr\". Try \"help\".\n" ^error,msg="Undefined command: \"ererwrererwrewr\". Try \"help\"." (gdb) GDB 6.4: (gdb) srwwerrweweer &"srwwerrweweer\n" &"Undefined command: \"srwwerrweweer\". Try \"help\".\n" ^done (gdb) With this, a GUI interface has the problem that it can't decide if the GDB has some problems parsing the command given to it or not because it scans for the "^error" string as result. With 6.4 this doesn't work any more. Do I miss anything here? What is the new recommended way to do this job? Sorry if this is a FAQ, but searching release note and list archives I can't find a hint for this. Thanks Dirk