forked from qt-creator/qt-creator
Debugger: Remove now unused functions
Change-Id: I85c27bd11a5bbe35a911f6aa2d6f628d7f0ffa28 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3203,33 +3203,6 @@ void GdbEngine::reloadFullStack()
|
||||
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()
|
||||
{
|
||||
DebuggerCommand cmd = stackCommand(-1);
|
||||
|
Reference in New Issue
Block a user