diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index cad2ecf..be1e25e 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -137,8 +137,7 @@ static paddr_t parse_expr(const char *arg, bool *success) { // *success = res; paddr_t addr; yy_scan_string(arg); - *success = yyparse(&addr); - printf("sucess: %d", *success); + *success = !yyparse(&addr); yylex_destroy(); return addr; }