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

Debugger: Pass data-directory to gdb on Windows

Required for gdb 7.6

Change-Id: I5d02a6b712fbd5c3f70ac4c83871b03197f95696
Reviewed-by: default avatarhjk <>
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)),
Supports Markdown
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