修复调试环境

修复了在trap.c中设断点无效的问题;
修复了trap.c无法显示trap.h中的代码提示的问题。
This commit is contained in:
os_lab_user 2024-03-24 16:35:11 +08:00
parent 69e4f2d806
commit 8b4ccf9bd1
2 changed files with 16 additions and 1 deletions

15
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/labcodes_answer/**/"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}

2
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"name": "(gdb) 启动", "name": "(gdb) 启动",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "obj/bootblock.o", "program": "bin/kernel",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}/labcodes_answer/lab1_result", "cwd": "${workspaceFolder}/labcodes_answer/lab1_result",