diff options
| author | zy <[email protected]> | 2023-11-08 05:39:52 -0500 |
|---|---|---|
| committer | zy <[email protected]> | 2023-11-08 05:39:52 -0500 |
| commit | 99de9a90e8ce5fa3b6823f22b9ca24e9dfd19f1b (patch) | |
| tree | 5d037348f635e4b443be89892129587189709aa2 | |
| parent | cc893f2b315f075abe76c21d26b61eb030cf81dd (diff) | |
some vscode setting
| -rw-r--r-- | .vscode/c_cpp_properties.json | 26 | ||||
| -rw-r--r-- | .vscode/launch.json | 33 | ||||
| -rw-r--r-- | .vscode/settings.json | 15 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..27f0719 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,26 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "/usr/src/kernels/5.17.15-1.el8.x86_64/include/**", + "/usr/src/kernels/5.17.15-1.el8.x86_64/arch/x86/include/**", + "/usr/src/kernels/5.17.15-1.el8.x86_64/arch/x86/include/generated/**" + ], + "forcedInclude": [ + "/usr/src/kernels/5.17.15-1.el8.x86_64/include/generated/autoconf.h" + ], + "defines": [ + "__GNUC__", + "__KERNEL__" + ], + "compilerPath": "/usr/bin/gcc", + "cStandard": "gnu89", + "compilerArgs": [ + "\"-I\",\"\"" + ] + } + ], + "version": 4 +}
\ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..d9fa3c7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "(gdb) 启动", + "type": "cppdbg", + "request": "launch", + "program": "输入程序名称,例如 ${workspaceFolder}/a.out", + "args": [], + "stopAtEntry": false, + "cwd": "${fileDirname}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "为 gdb 启用整齐打印", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "将反汇编风格设置为 Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + } + + ] +}
\ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..959eb64 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,15 @@ +{ + "files.associations": { + "hrtimer.h": "c", + "ktime.h": "c", + "typeinfo": "c", + "signal.h": "c", + "module.h": "c", + "watch_module.h": "c", + "kernel.h": "c", + "device.h": "c", + "mm.h": "c", + "fs.h": "c", + "sched.h": "c" + } +}
\ No newline at end of file |
