From 116f9332a206767c45095950f09f7c7447b561cf Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 14 Jul 2025 11:20:32 +0000 Subject: ide: improve support for vscodium --- .vscode/launch.json | 31 ++++++++++--------------------- .vscode/settings.json | 8 ++++---- .vscode/tasks.json | 4 ++-- 3 files changed, 16 insertions(+), 27 deletions(-) (limited to '.vscode') diff --git a/.vscode/launch.json b/.vscode/launch.json index 4dc9fc6..e522ad5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,29 +3,18 @@ "configurations": [ { "name": "(gdb) QEMU", - "miDebuggerPath": "x86_64-pc-elf-gdb", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build/bin/${command:cmake.buildType}/_kernel", - "MIMode": "gdb", - "miDebuggerServerAddress": "localhost:1234", + "type": "gdb", + "request": "attach", + "remote": true, + "target": "localhost:1234", + "valuesFormatting": "prettyPrinters", + "gdbpath": "x86_64-pc-elf-gdb", "cwd": "${workspaceFolder}", - "stopAtEntry": true, "preLaunchTask": "QEMU (gdb)", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Load file", - "text": "-file-exec-and-symbols ${workspaceFolder}/build/bin/${command:cmake.buildType}/_kernel" - }, - { - "description": "Set breakpoint on _start", - "text": "-break-insert _start" - } + "executable": "${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/_kernel", + "autorun": [ + "-enable-pretty-printing", + "-break-insert _start" ] } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index f0f6745..6178035 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,10 +2,10 @@ "cmake.useCMakePresets": "always", "cmake.options.statusBarVisibility": "visible", - "C_Cpp.default.cppStandard": "c++20", - "C_Cpp.autoAddFileAssociations": false, - "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", - "C_Cpp.formatting": "clangFormat", + "clangd.arguments": [ + "--compile-commands-dir=${workspaceFolder}/build", + "--query-driver=/opt/toolchain/bin/x86_64-pc-elf-g++" + ], "[cpp]": { "editor.formatOnSave": true, diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5e8c23f..3b5ae9f 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -17,7 +17,7 @@ "-d", "int,cpu_reset", "-cdrom", - "${workspaceFolder}/build/teachos-${command:cmake.buildType}.iso" + "${command:cmake.buildDirectory}/teachos-${command:cmake.buildType}.iso" ], "isBackground": true, "presentation": { @@ -52,7 +52,7 @@ "-display", "curses", "-cdrom", - "${workspaceFolder}/build/teachos-${command:cmake.buildType}.iso" + "${command:cmake.buildDirectory}/teachos-${command:cmake.buildType}.iso" ], "isBackground": true, "presentation": { -- cgit v1.2.3