mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
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:
parent
097b005fdb
commit
e3478a586c
1 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue