forked from qt-creator/qt-creator
Debugger: Enforce use of target-async for Android gdbserver
Since NDK r11 this seems to be needed to get breakpoints set correctly on Linux and Mac. Change-Id: I54281feecc0a915d4761228c612b72889756aecf Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -205,7 +205,7 @@ void GdbRemoteServerEngine::setupInferior()
|
||||
// gdb/mi/mi-main.c:1958: internal-error:
|
||||
// mi_execute_async_cli_command: Assertion `is_running (inferior_ptid)'
|
||||
// failed.\nA problem internal to GDB has been detected,[...]
|
||||
if (boolSetting(TargetAsync))
|
||||
if (usesTargetAsync())
|
||||
runCommand({"set target-async on", NoFlags, CB(handleSetTargetAsync)});
|
||||
|
||||
if (symbolFile.isEmpty()) {
|
||||
@@ -429,7 +429,7 @@ void GdbRemoteServerEngine::handleExecRun(const DebuggerResponse &response)
|
||||
void GdbRemoteServerEngine::interruptInferior2()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorStopRequested, qDebug() << state());
|
||||
if (boolSetting(TargetAsync)) {
|
||||
if (usesTargetAsync()) {
|
||||
runCommand({"-exec-interrupt", NoFlags, CB(handleInterruptInferior)});
|
||||
} else if (m_isQnxGdb && HostOsInfo::isWindowsHost()) {
|
||||
m_gdbProc.interrupt();
|
||||
|
||||
Reference in New Issue
Block a user