From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17928 invoked by alias); 23 Apr 2012 01:13:01 -0000 Received: (qmail 17918 invoked by uid 22791); 23 Apr 2012 01:13:00 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-pz0-f54.google.com (HELO mail-pz0-f54.google.com) (209.85.210.54) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Apr 2012 01:12:47 +0000 Received: by dady13 with SMTP id y13so14780857dad.13 for ; Sun, 22 Apr 2012 18:12:47 -0700 (PDT) Received: by 10.68.202.234 with SMTP id kl10mr15270135pbc.52.1335143566965; Sun, 22 Apr 2012 18:12:46 -0700 (PDT) Received: from [192.168.1.128] ([115.192.124.24]) by mx.google.com with ESMTPS id pg6sm12822807pbb.41.2012.04.22.18.12.44 (version=SSLv3 cipher=OTHER); Sun, 22 Apr 2012 18:12:45 -0700 (PDT) Message-ID: <4F94ACE0.7000904@gmail.com> Date: Mon, 23 Apr 2012 01:13:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 CC: gdb@sourceware.org Subject: Re: [Mingw, GDB MI] console redirect question References: <4F94AA91.3060608@gmail.com> In-Reply-To: <4F94AA91.3060608@gmail.com> 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-04/txt/msg00180.txt.bz2 On 2012-4-23 9:04, asmwarrior wrote: > I'm using GDB MI interface to debug Codeblocks.(Debug Codeblocks under Codeblocks) > Windows XP, GDB CVS build under MinGW GCC 4.6.x. > I experience a problem that the debuggee Codeblocks's log message was show in the GDB MI's log. > This is quite annoying, because the debuggee has many custom log messages mixed with normal GDB MI message. > > When I run the command "info terminal", it returned: "This GDB does not control a terminal.\n" > So, It looks like gdb does not redirect any terminal. > > BTW: I do not have such problem when I use GDB CLI interface to debug Codeblocks. > > Anyone has experience the same problem? > > I would like the debuggee's own log message goes to its own log window. > (Codeblocks has its own log window, a wxWidgets window to show messages) > > Thanks. > > Yuanhui Zhang > Code::blocks developer > It looks like this is not the problem of GDB, I just found that I forget to put some program start-up arguments, so by default, the debuggee's log message was going to the console, which is the GDB console. By passing some arguments, the debuggee's log message will shown in its own window. Sorry about the noise.