[GB.DEBUG]

* BUG: The debugger now correctly prints expression compilation errors.


git-svn-id: svn://localhost/gambas/trunk@3546 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2011-02-07 01:58:19 +00:00
parent 845ae0ad6b
commit 41b7b2a0f7

View file

@ -747,13 +747,13 @@ static void command_eval(const char *cmd)
EVAL.New(POINTER(&expr), &cmd[start], len - start);
if (EVAL.Compile(expr, *cmd == '='))
goto __ERROR;
{
if (*cmd != '!')
fprintf(_out, "!");
fputs(expr->error, out);
goto __END;
}
// DEBUG_info.bp = BP;
// DEBUG_info.fp = FP;
// DEBUG_info.op = OP;
// DEBUG_info.cp = CP;
val = (VALUE *)EVAL.Run(expr, GB_DEBUG.GetValue);
if (!val)
goto __ERROR;