aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.devcontainer/x86-64/devcontainer.json2
-rw-r--r--.vscode/extensions.json6
-rw-r--r--.vscode/launch.json31
3 files changed, 27 insertions, 12 deletions
diff --git a/.devcontainer/x86-64/devcontainer.json b/.devcontainer/x86-64/devcontainer.json
index 26c05d0..4c6afab 100644
--- a/.devcontainer/x86-64/devcontainer.json
+++ b/.devcontainer/x86-64/devcontainer.json
@@ -14,7 +14,7 @@
"basdp.language-gas-x86",
"llvm-vs-code-extensions.vscode-clangd",
"ms-vscode.cmake-tools",
- "webfreak.debug",
+ "KylinIdeTeam.cppdebug",
"zixuanwang.linkerscript"
]
}
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 69d954c..2b19ba3 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,5 +1,9 @@
{
"recommendations": [
- "ms-vscode-remote.vscode-remote-extensionpack"
+ "basdp.language-gas-x86",
+ "llvm-vs-code-extensions.vscode-clangd",
+ "ms-vscode.cmake-tools",
+ "KylinIdeTeam.cppdebug",
+ "zixuanwang.linkerscript"
]
} \ No newline at end of file
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 6739aa3..6478c96 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -3,18 +3,29 @@
"configurations": [
{
"name": "(gdb) QEMU",
- "type": "gdb",
- "request": "attach",
- "remote": true,
- "target": "localhost:1234",
- "valuesFormatting": "prettyPrinters",
- "gdbpath": "x86_64-pc-elf-gdb",
+ "type": "cppdbg",
+ "request": "launch",
"cwd": "${workspaceFolder}",
+ "stopAtEntry": true,
+ "miDebuggerServerAddress": "localhost:1234",
+ "miDebuggerPath": "x86_64-pc-elf-gdb",
"preLaunchTask": "QEMU (gdb)",
- "executable": "${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.sym",
- "autorun": [
- "-enable-pretty-printing",
- "-break-insert _start"
+ "MIMode": "gdb",
+ "program": "${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.sym",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for gdb",
+ "text": "-enable-pretty-printing",
+ "ignoreFailures": true
+ },
+ {
+ "description": "Load code",
+ "text": "-file-exec-file ${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.elf"
+ },
+ {
+ "description": "Load symbols",
+ "text": "-file-exec-and-symbols ${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.sym"
+ }
]
}
]