diff options
Diffstat (limited to '.vscode')
| -rw-r--r-- | .vscode/extensions.json | 6 | ||||
| -rw-r--r-- | .vscode/launch.json | 31 |
2 files changed, 26 insertions, 11 deletions
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" + } ] } ] |
