From 8b0cc775b5ce695bef9c8d53d4c3036052483b23 Mon Sep 17 00:00:00 2001 From: 423A35C7 <609514299@qq.com> Date: Mon, 10 Jun 2024 11:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C6=E7=8E=AF=E5=A2=83=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 运行时会出错应该是正常的,因为用户进程全都正常退出了。 --- .vscode/c_cpp_properties.json | 2 +- .vscode/launch.json | 2 +- .vscode/tasks.json | 2 +- labcodes_answer/lab6_result/Makefile | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 979a682..5074ba3 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -6,7 +6,7 @@ "${workspaceFolder}/**", // "${workspaceFolder}/labcodes_answer/**/", // 由于按顺序搜索,所以如果这样的话搜索到lab1_result中的同名头文件就不会引用到lab2_result中的同名头文件导致错误 - "${workspaceFolder}/labcodes_answer/lab3_result/**/" + "${workspaceFolder}/labcodes_answer/lab6_result/**/" ], "defines": [], "compilerPath": "/usr/bin/gcc", diff --git a/.vscode/launch.json b/.vscode/launch.json index 4382c07..2fc1453 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "program": "bin/kernel", "args": [], "stopAtEntry": false, - "cwd": "${workspaceFolder}/labcodes_answer/lab3_result", + "cwd": "${workspaceFolder}/labcodes_answer/lab6_result", "environment": [], "externalConsole": false, "MIMode": "gdb", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c12ab8c..370a58a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -9,7 +9,7 @@ "env": { "DISPLAY": ":0", }, - "cwd": "${workspaceFolder}/labcodes_answer/lab3_result" + "cwd": "${workspaceFolder}/labcodes_answer/lab6_result" }, "problemMatcher": [ diff --git a/labcodes_answer/lab6_result/Makefile b/labcodes_answer/lab6_result/Makefile index fcfb99e..f8d37dc 100644 --- a/labcodes_answer/lab6_result/Makefile +++ b/labcodes_answer/lab6_result/Makefile @@ -253,6 +253,7 @@ endif # files for grade script TARGETS: $(TARGETS) +all: $(TARGETS) .DEFAULT_GOAL := TARGETS @@ -268,6 +269,8 @@ qemu-nox: $(UCOREIMG) $(SWAPIMG) $(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic TERMINAL := gnome-terminal +gdb: $(UCOREIMG) $(SWAPIMG) + $(V)$(QEMU) -S -s -parallel stdio $(QEMUOPTS) -serial null debug: $(UCOREIMG) $(SWAPIMG) $(V)$(QEMU) -S -s -parallel stdio $(QEMUOPTS) -serial null &