ide/debugger/watches: Fixed endless loop on GDB giving back the same identifier
authorJerome St-Louis <jerome@ecere.com>
Fri, 20 Jun 2014 16:05:51 +0000 (12:05 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 20 Jun 2014 16:05:51 +0000 (12:05 -0400)
ide/src/debugger/debugTools.ec

index fc551e2..8039154 100644 (file)
@@ -310,7 +310,7 @@ void DebugComputeExpression(Expression exp)
          switch(evalError)
          {
             case dummyExp:
-               if(evaluation && !strchr(evaluation, '<'))
+               if(evaluation && !strchr(evaluation, '<') && (exp.type != symbolErrorExp || !exp.identifier || !exp.identifier.string || strcmp(evaluation, exp.identifier.string)))
                {
                   // Going back to parsing the expression string so as to catch inf/-inf/nan/-nan etc.
                   expNew = ParseExpressionString(evaluation);