forked from qt-creator/qt-creator
Debugger: Make gdbbridge fetchVariable output similar to lldbbridge's
Change-Id: I11fc7d163dbd6b7deb5e88cac65dc61df3352411 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4504,24 +4504,7 @@ void GdbEngine::doUpdateLocals(const UpdateParameters ¶ms)
|
||||
void GdbEngine::handleFetchVariables(const DebuggerResponse &response)
|
||||
{
|
||||
m_inUpdateLocals = false;
|
||||
|
||||
if (response.resultClass == ResultDone) {
|
||||
QString out = response.consoleStreamOutput;
|
||||
while (out.endsWith(' ') || out.endsWith('\n'))
|
||||
out.chop(1);
|
||||
int pos = out.indexOf("data=");
|
||||
if (pos != 0) {
|
||||
showMessage("DISCARDING JUNK AT BEGIN OF RESPONSE: " + out.left(pos));
|
||||
out = out.mid(pos);
|
||||
}
|
||||
GdbMi all;
|
||||
all.fromStringMultiple(out);
|
||||
|
||||
updateLocalsView(all);
|
||||
|
||||
} else {
|
||||
showMessage("DUMPER FAILED: " + response.toString());
|
||||
}
|
||||
updateLocalsView(response.data);
|
||||
watchHandler()->notifyUpdateFinished();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user