From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3062 invoked by alias); 9 Oct 2005 05:19:37 -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 3055 invoked by uid 22791); 9 Oct 2005 05:19:35 -0000 Received: from xproxy.gmail.com (HELO xproxy.gmail.com) (66.249.82.199) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 09 Oct 2005 05:19:35 +0000 Received: by xproxy.gmail.com with SMTP id h27so732447wxd for ; Sat, 08 Oct 2005 22:19:33 -0700 (PDT) Received: by 10.70.18.5 with SMTP id 5mr3134260wxr; Sat, 08 Oct 2005 22:19:33 -0700 (PDT) Received: by 10.70.80.3 with HTTP; Sat, 8 Oct 2005 22:19:33 -0700 (PDT) Message-ID: Date: Sun, 09 Oct 2005 05:19:00 -0000 From: "jingzhao.ou" To: gdb@sources.redhat.com Subject: Separating "shell dir" output from GDB/MI output MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-10/txt/msg00049.txt.bz2 Dear all, I am trying to see if it is possible to build a Tcl/Tk based GDB frontend using Bob Rossi's MI parser. For normal commands, it works just fine. However, if I execute "shell dir" command in gdb, the parser will report error. (see the end of the email) I am wondering if there is any way to separate the shell output from the normal GDB output. So that this problem can be solved properly. Sincerely hope that any one can give me a hand. I am using MinGW. Best regards, Jingzhao =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (gdb) &"shell dir\n" Makefile gdbmi_grammar.tab.o gdbmi_pt.c main.tcl Makefile_orig gdbmi_grammar.txt gdbmi_pt.h tkGDB.c b gdbmi_grammar.y gdbmi_pt.o tkGDB.dll bb gdbmi_lexer.l lex.yy.c tkGDB.exe gdbmi_driver.c gdbmi_parser.c lex.yy.o tkGDB_bak.c gdbmi_grammar.tab.c gdbmi_parser.h libgdbmi_parser.a tkGDB_stub.c gdbmi_grammar.tab.h gdbmi_parser.o main.exe tk_gdb.tcl ^done (gdb) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D