diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index e68432b..bd2053d 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -191,7 +191,8 @@ static int cmd_x(char *args) { word_t n = parse_uint(arg, &res); if (!res) goto wrong_usage; - arg = strtok(NULL, " "); + // No deliminter here, just pass all the remain argument to `parse_expr()` + arg = strtok(NULL, ""); word_t addr = parse_expr(arg, &res); if (!res) goto wrong_usage;