forked from qt-creator/qt-creator
GDB: Fix reading executable from core dump on Windows
Multiarch GDB on Windows crashes if osabi is cygwin (the default) when opening a core dump. Change-Id: Ic04d508d99a3e947e05dcf3adc8bb2b265edc16b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
f5ac79a20f
commit
d10fafae71
@@ -4891,7 +4891,11 @@ CoreInfo CoreInfo::readExecutableNameFromCore(const StandardRunnable &debugger,
|
||||
cinfo.rawStringFromCore = QString::fromLocal8Bit(reader.readCoreName(&cinfo.isCore));
|
||||
cinfo.foundExecutableName = findExecutableFromName(cinfo.rawStringFromCore, coreFile);
|
||||
#else
|
||||
QStringList args = {"-nx", "-batch", "-c", coreFile};
|
||||
QStringList args = {"-nx", "-batch"};
|
||||
// Multiarch GDB on Windows crashes if osabi is cygwin (the default) when opening a core dump.
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
args += {"-ex", "set osabi GNU/Linux"};
|
||||
args += {"-ex", "core " + coreFile};
|
||||
|
||||
SynchronousProcess proc;
|
||||
QStringList envLang = QProcess::systemEnvironment();
|
||||
|
Reference in New Issue
Block a user