实验2环境初始化
This commit is contained in:
parent
3d58264759
commit
be3ec804e8
4
.vscode/c_cpp_properties.json
vendored
4
.vscode/c_cpp_properties.json
vendored
@ -4,7 +4,9 @@
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${workspaceFolder}/labcodes_answer/**/"
|
||||
// "${workspaceFolder}/labcodes_answer/**/",
|
||||
// 由于按顺序搜索,所以如果这样的话搜索到lab1_result中的同名头文件就不会引用到lab2_result中的同名头文件导致错误
|
||||
"${workspaceFolder}/labcodes_answer/lab2_result/kern/mm/"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
|
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -11,7 +11,7 @@
|
||||
"program": "bin/kernel",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result",
|
||||
"cwd": "${workspaceFolder}/labcodes_answer/lab2_result",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
|
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -9,7 +9,7 @@
|
||||
"env": {
|
||||
"DISPLAY": ":0",
|
||||
},
|
||||
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result"
|
||||
"cwd": "${workspaceFolder}/labcodes_answer/lab2_result"
|
||||
},
|
||||
|
||||
"problemMatcher": [
|
||||
|
@ -202,7 +202,7 @@ endif
|
||||
# files for grade script
|
||||
|
||||
targets: $(TARGETS)
|
||||
|
||||
all: $(TARGETS)
|
||||
.DEFAULT_GOAL := targets
|
||||
|
||||
QEMUOPTS = -hda $(UCOREIMG)
|
||||
@ -217,7 +217,8 @@ qemu-nox: targets
|
||||
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
|
||||
|
||||
TERMINAL := gnome-terminal
|
||||
|
||||
gdb: $(UCOREIMG)
|
||||
$(V)$(QEMU) -S -s -parallel stdio -hda $< -serial null
|
||||
debug: $(UCOREIMG)
|
||||
$(V)$(QEMU) -S -s -parallel stdio $(QEMUOPTS) -serial null &
|
||||
$(V)sleep 2
|
||||
|
Loading…
Reference in New Issue
Block a user