forked from qt-creator/qt-creator
Debugger: Replace module polling in gdb by handling notifications
Explicit polling is still available and accessible as fall back in the gui, but is at least in theory not necessary anymore. Change-Id: Ifd184fb88bdbf5de53f5776e2c94a03f8ad44a06 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -504,6 +504,7 @@ void GdbEngine::handleAsyncOutput(const QString &asyncClass, const GdbMi &result
|
|||||||
// target-name="/usr/lib/libdrm.so.2",
|
// target-name="/usr/lib/libdrm.so.2",
|
||||||
// host-name="/usr/lib/libdrm.so.2"
|
// host-name="/usr/lib/libdrm.so.2"
|
||||||
QString id = result["id"].data();
|
QString id = result["id"].data();
|
||||||
|
modulesHandler()->removeModule(result["target-name"].data());
|
||||||
progressPing();
|
progressPing();
|
||||||
showStatusMessage(tr("Library %1 unloaded.").arg(id), 1000);
|
showStatusMessage(tr("Library %1 unloaded.").arg(id), 1000);
|
||||||
} else if (asyncClass == "thread-group-added") {
|
} else if (asyncClass == "thread-group-added") {
|
||||||
@@ -1044,7 +1045,6 @@ void GdbEngine::updateAll()
|
|||||||
{
|
{
|
||||||
//PENDING_DEBUG("UPDATING ALL\n");
|
//PENDING_DEBUG("UPDATING ALL\n");
|
||||||
QTC_CHECK(state() == InferiorUnrunnable || state() == InferiorStopOk);
|
QTC_CHECK(state() == InferiorUnrunnable || state() == InferiorStopOk);
|
||||||
reloadModulesInternal();
|
|
||||||
DebuggerCommand cmd(stackCommand(action(MaximalStackDepth)->value().toInt()));
|
DebuggerCommand cmd(stackCommand(action(MaximalStackDepth)->value().toInt()));
|
||||||
cmd.callback = [this](const DebuggerResponse &r) { handleStackListFrames(r, false); };
|
cmd.callback = [this](const DebuggerResponse &r) { handleStackListFrames(r, false); };
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
@@ -2626,7 +2626,6 @@ void GdbEngine::loadSymbolsForStack()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (needUpdate) {
|
if (needUpdate) {
|
||||||
//reloadModulesInternal();
|
|
||||||
reloadStack();
|
reloadStack();
|
||||||
updateLocals();
|
updateLocals();
|
||||||
}
|
}
|
||||||
|
@@ -2326,6 +2326,7 @@ namespace plugin {
|
|||||||
// Step
|
// Step
|
||||||
name = lib.errorString();
|
name = lib.errorString();
|
||||||
}
|
}
|
||||||
|
lib.unload();
|
||||||
dummyStatement(&name, &res);
|
dummyStatement(&name, &res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user