public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* [Mingw, GDB MI] console redirect question
@ 2012-04-23  1:03 asmwarrior
  2012-04-23  1:13 ` asmwarrior
  0 siblings, 1 reply; 2+ messages in thread
From: asmwarrior @ 2012-04-23  1:03 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Mingw, GDB MI] console redirect question
  2012-04-23  1:03 [Mingw, GDB MI] console redirect question asmwarrior
@ 2012-04-23  1:13 ` asmwarrior
  0 siblings, 0 replies; 2+ messages in thread
From: asmwarrior @ 2012-04-23  1:13 UTC (permalink / raw)
  Cc: gdb

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-23  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23  1:03 [Mingw, GDB MI] console redirect question asmwarrior
2012-04-23  1:13 ` asmwarrior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).