Parcourir la source

实验4环境初始化

运行时会出错应该是正常的,因为没有实现进程的退出。
x86-32
423A35C7 il y a 4 mois
Parent
révision
1459981b3f
5 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. +1
    -1
      .vscode/c_cpp_properties.json
  2. +1
    -1
      .vscode/launch.json
  3. +3
    -0
      .vscode/settings.json
  4. +1
    -1
      .vscode/tasks.json
  5. +3
    -1
      labcodes_answer/lab4_result/Makefile

+ 1
- 1
.vscode/c_cpp_properties.json Voir le fichier

@ -6,7 +6,7 @@
"${workspaceFolder}/**",
// "${workspaceFolder}/labcodes_answer/**/",
// lab1_resultlab2_result
"${workspaceFolder}/labcodes_answer/lab3_result/**/"
"${workspaceFolder}/labcodes_answer/lab4_result/**/"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",

+ 1
- 1
.vscode/launch.json Voir le fichier

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

+ 3
- 0
.vscode/settings.json Voir le fichier

@ -0,0 +1,3 @@
{
"debug.allowBreakpointsEverywhere": true
}

+ 1
- 1
.vscode/tasks.json Voir le fichier

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

+ 3
- 1
labcodes_answer/lab4_result/Makefile Voir le fichier

@ -214,7 +214,7 @@ endif
# files for grade script
TARGETS: $(TARGETS)
all: $(TARGETS)
.DEFAULT_GOAL := TARGETS
QEMUOPTS = -hda $(UCOREIMG) -drive file=$(SWAPIMG),media=disk,cache=writeback
@ -229,6 +229,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 &

Chargement…
Annuler
Enregistrer