From 1ae4b8e87b15662ccedcac8802cc96bfa9ff22b3 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Fri, 12 Jan 2024 17:43:42 +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.1.69=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=2020=2016:00:29=20UTC?= =?UTF-8?q?=202023=20x86=5F64=20GNU/Linux=20=2017:43:42=20=20up=20=2017:59?= =?UTF-8?q?,=20=202=20users,=20=20load=20average:=200.30,=200.40,=200.43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/scripts/build.mk | 2 -- nemu/src/monitor/sdb/filelist.mk | 10 ---------- nemu/src/monitor/sdb/sdb.c | 2 -- 3 files changed, 14 deletions(-) diff --git a/nemu/scripts/build.mk b/nemu/scripts/build.mk index 0a04409..07c3c79 100644 --- a/nemu/scripts/build.mk +++ b/nemu/scripts/build.mk @@ -42,13 +42,11 @@ $(OBJ_DIR)/%.o: %.cc $(OBJ_DIR)/%.tag.c: %.y @echo + YACC $< - @echo $@ $< @mkdir -p $(dir $@) @$(YACC) $(YFLAGS) --header=$(<:.y=.h) -o $@ $< $(OBJ_DIR)/%.yy.c: %.l $(OBJ_DIR)/%.tag.c @echo + LEX $< - @echo $@ $< @mkdir -p $(dir $@) @$(LEX) $(LFLAGS) -o $@ $< diff --git a/nemu/src/monitor/sdb/filelist.mk b/nemu/src/monitor/sdb/filelist.mk index bad7396..394a8a3 100644 --- a/nemu/src/monitor/sdb/filelist.mk +++ b/nemu/src/monitor/sdb/filelist.mk @@ -1,13 +1,3 @@ SRCS-y += src/monitor/sdb/addrexp.tag.c src/monitor/sdb/addrexp.yy.c INC_PATH += src/monitor/sdb LFLAGS += -DYY_NO_UNPUT -DYY_NO_INPUT - -$(BUILD_DIR)/src/monitor/sdb/addr-exp.c: src/monitor/sdb/addr-exp.y - @echo + YACC $< - @mkdir -p $(dir $@) - @$(YACC) $(YFLAGS) --header=$(<:.y=.h) -o $@ $< - -$(BUILD_DIR)/src/monitor/sdb/addr-lex.c: src/monitor/sdb/addr-lex.l $(BUILD_DIR)/src/monitor/sdb/addr-exp.c - @echo + LEX $< - @mkdir -p $(dir $@) - @$(LEX) $(LFLAGS) -o $@ $< diff --git a/nemu/src/monitor/sdb/sdb.c b/nemu/src/monitor/sdb/sdb.c index b1e3ae0..23218d5 100644 --- a/nemu/src/monitor/sdb/sdb.c +++ b/nemu/src/monitor/sdb/sdb.c @@ -286,8 +286,6 @@ void sdb_mainloop() { cmd_c(NULL); return; } - // int res = yyparse(); - // exit(res); for (char *str; (str = rl_gets()) != NULL;) { char *str_end = str + strlen(str);