Skip to content

Commit

Permalink
Only use anyString for String types.
Browse files Browse the repository at this point in the history
This change also makes the debugger faster since we are not calling anyString on all types.
  • Loading branch information
adeas31 committed Jun 14, 2016
1 parent 2c515a6 commit aef117e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OMEdit/OMEditGUI/Debugger/Locals/LocalsWidget.cpp
Expand Up @@ -248,9 +248,11 @@ void LocalsTreeItem::retrieveValue()
pGDBAdapter->postCommand(CommandFactory::dataEvaluateExpression(pStackFramesWidget->getSelectedThread(),
pStackFramesWidget->getSelectedFrame(), getName()),
GDBAdapter::BlockUntilResponse, this, &GDBAdapter::dataEvaluateExpressionCB);
} else {
} else if (isCoreType()) {
pGDBAdapter->postCommand(CommandFactory::anyString(pStackFramesWidget->getSelectedThread(), pStackFramesWidget->getSelectedFrame(),
getName()), GDBAdapter::BlockUntilResponse, this, &GDBAdapter::anyStringCB);
} else {
setValue(getDisplayType());
}
}

Expand Down

0 comments on commit aef117e

Please sign in to comment.