Debugger: Remove now unused functions

Change-Id: I85c27bd11a5bbe35a911f6aa2d6f628d7f0ffa28
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2016-10-12 09:17:51 +02:00
parent 8c951d85c5
commit 5711a74d0a

View File

@@ -3203,33 +3203,6 @@ void GdbEngine::reloadFullStack()
runCommand(cmd); runCommand(cmd);
} }
static QString msgCannotLoadQmlStack(const QString &why)
{
return "Unable to load QML stack: " + why;
}
static quint64 findJsExecutionContextAddress(const GdbMi &stackArgsResponse, const QString &qtNamespace)
{
const GdbMi frameList = stackArgsResponse.childAt(0);
if (!frameList.childCount())
return 0;
QString jsExecutionContextType = qtNamespace;
if (!jsExecutionContextType.isEmpty())
jsExecutionContextType.append("::");
jsExecutionContextType.append("QV4::ExecutionContext *");
foreach (const GdbMi &frameNode, frameList.children()) {
foreach (const GdbMi &argNode, frameNode["args"].children()) {
if (argNode["type"].data() == jsExecutionContextType) {
bool ok;
const quint64 address = argNode["value"].data().toULongLong(&ok, 16);
if (ok && address)
return address;
}
}
}
return 0;
}
void GdbEngine::loadAdditionalQmlStack() void GdbEngine::loadAdditionalQmlStack()
{ {
DebuggerCommand cmd = stackCommand(-1); DebuggerCommand cmd = stackCommand(-1);