diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index 726b1e8..2ec69a2 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -69,6 +69,7 @@ static int cmd_si(char *args) { return 0; } +void show_wp(void); static int cmd_info(char *args) { char *arg = strtok(NULL, " "); if (arg == NULL) { @@ -79,7 +80,7 @@ static int cmd_info(char *args) { if (arg[0] == 'r') { isa_reg_display(); } else if (arg[0] == 'w') { - printf("Watchpoint:\n"); + show_wp(); } else { p_help("info"); }