Commit fe4b6fee authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk

Debugger: Pass data-directory to gdb on Windows

Required for gdb 7.6

Change-Id: I5d02a6b712fbd5c3f70ac4c83871b03197f95696
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent f939deaf
......@@ -4774,6 +4774,13 @@ void GdbEngine::startGdb(const QStringList &args)
gdbArgs << _("mi");
if (!debuggerCore()->boolSetting(LoadGdbInit))
gdbArgs << _("-n");
if (HostOsInfo::isWindowsHost()) {
const QFileInfo gdbBinaryFile(m_gdb);
const QString gdbDirectory(gdbBinaryFile.absolutePath());
const QString gdbDataDir = gdbDirectory + _("/data-directory");
if (QFile::exists(gdbDataDir))
gdbArgs << _("--data-directory") << gdbDataDir;
}
gdbArgs += args;
connect(gdbProc(), SIGNAL(error(QProcess::ProcessError)),
......
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