Ide/Debuggers/Gdb_MI2 : fixed small bug in expression simplifier

git-svn-id: svn://ultimatepp.org/upp/trunk@6932 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2014-02-19 12:18:31 +00:00
parent 097b005fdb
commit e3478a586c

View file

@ -64,21 +64,22 @@ bool Gdb_MI2::TypeSimplify(MIValue &val, bool deep)
continue;
if(key.StartsWith("<"))
{
TYPE_SIMPLIFIER_HANDLER handler = GetSimplifier(v.GetKey(0));
TYPE_SIMPLIFIER_HANDLER handler = GetSimplifier(key);
if(handler)
{
needMore |= handler(*this, vRoot, deep);
bool nm = handler(*this, vRoot, deep);
if(deep)
{
if(needMore)
if(nm)
{
// we shall remove the temporary value now...
vRoot.Remove(SIMPLIFY_TEMPVAL);
return needMore;
return nm;
}
}
else if(needMore)
else if(nm)
vRoot.FindAdd(SIMPLIFY_TEMPVAL, "<evaluating...>");
needMore |= nm;
}
else
needMore |= TypeSimplify(v, deep);