Browse Source

实验2环境初始化

x86-32
423A35C7 8 months ago
parent
commit
be3ec804e8
4 changed files with 8 additions and 5 deletions
  1. +3
    -1
      .vscode/c_cpp_properties.json
  2. +1
    -1
      .vscode/launch.json
  3. +1
    -1
      .vscode/tasks.json
  4. +3
    -2
      labcodes_answer/lab2_result/Makefile

+ 3
- 1
.vscode/c_cpp_properties.json View File

@ -4,7 +4,9 @@
"name": "Linux", "name": "Linux",
"includePath": [ "includePath": [
"${workspaceFolder}/**", "${workspaceFolder}/**",
"${workspaceFolder}/labcodes_answer/**/"
// "${workspaceFolder}/labcodes_answer/**/",
// lab1_resultlab2_result
"${workspaceFolder}/labcodes_answer/lab2_result/kern/mm/"
], ],
"defines": [], "defines": [],
"compilerPath": "/usr/bin/gcc", "compilerPath": "/usr/bin/gcc",

+ 1
- 1
.vscode/launch.json View File

@ -11,7 +11,7 @@
"program": "bin/kernel", "program": "bin/kernel",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result",
"cwd": "${workspaceFolder}/labcodes_answer/lab2_result",
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"MIMode": "gdb", "MIMode": "gdb",

+ 1
- 1
.vscode/tasks.json View File

@ -9,7 +9,7 @@
"env": { "env": {
"DISPLAY": ":0", "DISPLAY": ":0",
}, },
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result"
"cwd": "${workspaceFolder}/labcodes_answer/lab2_result"
}, },
"problemMatcher": [ "problemMatcher": [

+ 3
- 2
labcodes_answer/lab2_result/Makefile View File

@ -202,7 +202,7 @@ endif
# files for grade script # files for grade script
targets: $(TARGETS) targets: $(TARGETS)
all: $(TARGETS)
.DEFAULT_GOAL := targets .DEFAULT_GOAL := targets
QEMUOPTS = -hda $(UCOREIMG) QEMUOPTS = -hda $(UCOREIMG)
@ -217,7 +217,8 @@ qemu-nox: targets
$(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic $(V)$(QEMU) -serial mon:stdio $(QEMUOPTS) -nographic
TERMINAL := gnome-terminal TERMINAL := gnome-terminal
gdb: $(UCOREIMG)
$(V)$(QEMU) -S -s -parallel stdio -hda $< -serial null
debug: $(UCOREIMG) debug: $(UCOREIMG)
$(V)$(QEMU) -S -s -parallel stdio $(QEMUOPTS) -serial null & $(V)$(QEMU) -S -s -parallel stdio $(QEMUOPTS) -serial null &
$(V)sleep 2 $(V)sleep 2

Loading…
Cancel
Save