diff --git a/src/plugins/debugger/gdb/remotegdbprocess.cpp b/src/plugins/debugger/gdb/remotegdbprocess.cpp index a8f8cefcc5c3009b9283a8399bf7a577e0e233da..1af11ef1bc0335a68157ce7905329ec99694aaf2 100644 --- a/src/plugins/debugger/gdb/remotegdbprocess.cpp +++ b/src/plugins/debugger/gdb/remotegdbprocess.cpp @@ -86,7 +86,7 @@ bool RemoteGdbProcess::waitForStarted() connect(m_gdbConn.data(), SIGNAL(remoteOutputAvailable()), this, SLOT(handleGdbOutput())); m_gdbStarted = false; - m_gdbCmdLine = "stty -echo && " + m_command.toUtf8() + ' ' + m_gdbCmdLine = "stty -echo && DISPLAY=:0.0 " + m_command.toUtf8() + ' ' + m_cmdArgs.join(QLatin1String(" ")).toUtf8() + " -tty=" + AppOutputFile + " 2>" + ErrOutputFile + '\n'; if (!m_wd.isEmpty())