forked from qt-creator/qt-creator
Debugger: Force GNU/Linux osabi when debugging elf on Windows
Coredump fails to open with multi-target gdb on Windows. Change-Id: I66cea184a84539c9f56cc46d7eabadd7760ba649 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -1917,6 +1917,13 @@ void GdbEngine::handleGdbExit(const DebuggerResponse &response)
|
||||
}
|
||||
}
|
||||
|
||||
void GdbEngine::setLinuxOsAbi()
|
||||
{
|
||||
// In case GDB has multiple supported targets, the default osabi can be Cygwin.
|
||||
if (HostOsInfo::isWindowsHost() && runParameters().toolChainAbi.binaryFormat() == Abi::ElfFormat)
|
||||
runCommand({"set osabi GNU/Linux"});
|
||||
}
|
||||
|
||||
void GdbEngine::detachDebugger()
|
||||
{
|
||||
CHECK_STATE(InferiorStopOk);
|
||||
|
||||
Reference in New Issue
Block a user