diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index a77d83f..83482c3 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -11,6 +11,7 @@ #include #include void yyerror(word_t *result, const char *err) { + Error("Expression syntax error: %s", err); fprintf(stderr, "Error: %s\n", err); } %}