diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index 2610f4a..2c9842b 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -171,7 +171,8 @@ static int cmd_help(char *args) { printf("-- %s\n", cmd_table[i].description); // Print available subcommands for (int j = 0; j < cmd_table[i].nr_subcommand; j++) { - + struct CMDTable *sub_cmd_table = cmd_table[i].subcommand; + printf("\t %s -- %s", sub_cmd_table[j].name, sub_cmd_table[j].description); } } return 0;