From 26f668141f7479b57753f8bed923c17bda230ebb Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Thu, 14 Mar 2024 01:55:00 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.19=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Mar=20=201=2012:35:11=20UT?= =?UTF-8?q?C=202024=20x86=5F64=20GNU/Linux=20=2001:55:00=20=20up=20=2015:3?= =?UTF-8?q?1,=20=202=20users,=20=20load=20average:=200.30,=200.37,=200.41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/src/monitor/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nemu/src/monitor/monitor.c b/nemu/src/monitor/monitor.c index bb5cea1..69d938b 100644 --- a/nemu/src/monitor/monitor.c +++ b/nemu/src/monitor/monitor.c @@ -73,8 +73,8 @@ static int parse_args(int argc, char *argv[]) { {"log" , required_argument, NULL, 'l'}, {"diff" , required_argument, NULL, 'd'}, {"port" , required_argument, NULL, 'p'}, - {"help" , no_argument , NULL, 'h'}, {"elf" , required_argument, NULL, 'f'}, + {"help" , no_argument , NULL, 'h'}, {0 , 0 , NULL, 0 }, }; int o; @@ -92,7 +92,7 @@ static int parse_args(int argc, char *argv[]) { printf("\t-l,--log=FILE output log to FILE\n"); printf("\t-d,--diff=REF_SO run DiffTest with reference REF_SO\n"); printf("\t-p,--port=PORT run DiffTest with port PORT\n"); - printf("\t-f,--elf=PORT elf file with debug info\n"); + printf("\t-f,--elf=FILE elf file with debug info\n"); printf("\n"); exit(0); }