Commit 65124a6b authored by ck's avatar ck

Debugger: Set DISPLAY variable for GDB over SSH.

parent cd7c2ca1
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment