From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13976 invoked by alias); 15 May 2012 07:24:56 -0000 Received: (qmail 13963 invoked by uid 22791); 15 May 2012 07:24:54 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f41.google.com (HELO mail-pz0-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 May 2012 07:24:38 +0000 Received: by dakp5 with SMTP id p5so7572443dak.0 for ; Tue, 15 May 2012 00:24:38 -0700 (PDT) Received: by 10.68.228.106 with SMTP id sh10mr2511767pbc.107.1337066678283; Tue, 15 May 2012 00:24:38 -0700 (PDT) Received: from [192.168.1.128] ([115.193.205.251]) by mx.google.com with ESMTPS id oy8sm993672pbc.52.2012.05.15.00.24.28 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 00:24:36 -0700 (PDT) Message-ID: <4FB2051C.1@gmail.com> Date: Tue, 15 May 2012 07:24:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Eran Ifrah CC: gdb@sourceware.org Subject: Re: [mingw gdb/mi] Separating debuggee output from MI References: <4FB1F5B5.6090701@noobody.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00064.txt.bz2 On 2012-5-15 14:44, Eran Ifrah wrote: > Hi, > > I also faced this problem while ago when implementing it, what did the > trick for me was to execute 'set new-console on' after starting gdb > but before executing the target > so the sequence should be something like this: > >> gdb >> set new-console on >> .. other initialization commands ... >> run > > > By running this command, gdb will create a new console for the debugee output. > i.e. all the redirected IO that you capture in your frontend will > always be gdb's output. > > Note: this command does not work under Linux / Mac. To achieve this on > *NIX, you need to pass > --tty=/dev/pts/XX to gdb for achieving the same effect. > > Also, here is a complete reference for codelite's GDB MI implementation: > http://codelite.svn.sourceforge.net/viewvc/codelite/trunk/Debugger/debuggergdb.cpp?revision=5439&view=markup > > Look at around line 1025 in function : DoInitializeGdb() > Hi, eran, that's was a good solution. I have such issue several days ago when I used gdb-mi plugin for Codeblocks. I will ask OBF (the gdb-mi plugin maintainer) to follow your steps. Thanks. BTW: I remember once I have such issue, I looked up this in the GDB documents, but no information about this Windows specific issue, So can some one enhanced this in the gdb documents? Yuanhui Zhang ollydbg(Codeblocks forum ID)