Feature #1731

GDB - MingGW : Display output of target application in a separate console

Added by Abdelghani Omari almost 7 years ago. Updated almost 7 years ago.

Status:RejectedStart date:05/28/2017
Priority:NormalDue date:
Assignee:Zbigniew Rebacz% Done:

0%

Category:DebuggerSpent time:-
Target version:-

Description

the command "set new-console on" is mswindows specific, it allows the output redirection of the program to a new console.

the patch then in Gdb.cpp:

bool Gdb::Create(One<Host>&& _host, const String& exefile, const String& cmdline, bool console)
{
....
    Cmd("set prompt " GDB_PROMPT);
    Cmd("set disassembly-flavor intel");
    Cmd("set exec-done-display off");
    Cmd("set annotate 1");
    Cmd("set height 0");
    Cmd("set width 0");
    Cmd("set confirm off");
    Cmd("set print asm-demangle");
    Cmd("set print static-members off");
    Cmd("set print vtbl off");
    Cmd("set print repeat 0");
    Cmd("set print null-stop");

    Cmd("set new-console on");   // LINE ADDED
....
}


Related issues

Duplicates Bug #1370: cmd.exe dosent' apper when debugging with mingw debuger Approved 01/16/2016

History

#1 Updated by Abdelghani Omari almost 7 years ago

  • Category set to Debugger

#2 Updated by Zbigniew Rebacz almost 7 years ago

If it is mswindows specific then why not use:

#ifdef PLATFORM_WINDOWS

#endif

?

#3 Updated by Zbigniew Rebacz almost 7 years ago

  • Target version set to Release 2017.2

-

#4 Updated by Zbigniew Rebacz almost 7 years ago

  • Target version deleted (Release 2017.2)

#5 Updated by Zbigniew Rebacz almost 7 years ago

  • Duplicates Bug #1370: cmd.exe dosent' apper when debugging with mingw debuger added

#6 Updated by Zbigniew Rebacz almost 7 years ago

  • Status changed from Patch ready to Rejected
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

Rejected due to duplication with #1370.

Also available in: Atom PDF