Sfoglia il codice sorgente

实验2环境初始化

x86-32
423A35C7 8 mesi fa
parent
commit
be3ec804e8
4 ha cambiato i file con 8 aggiunte e 5 eliminazioni
  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 Vedi File

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

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

@ -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",

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

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

+ 3
- 2
labcodes_answer/lab2_result/Makefile Vedi File

@ -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

Caricamento…
Annulla
Salva