cleanup VSCode settings and linux setup

This commit is contained in:
2025-09-13 15:40:58 +02:00
parent 35a9fe95cb
commit 26d03549ea
14 changed files with 61 additions and 41 deletions

View File

@@ -1,10 +1,15 @@
{
"recommendations": [
"ms-vscode.cpptools-extension-pack",
"mkhl.direnv",
"sanaajani.taskrunnercode",
"ms-vscode.cpptools-themes",
"cnshenj.vscode-task-manager",
"twxs.cmake",
"kylinideteam.cmake-intellisence",
"kylinideteam.kylin-cmake-tools",
"llvm-vs-code-extensions.vscode-clangd",
"eclipse-cdt.cdt-gdb-vscode",
"eclipse-cdt.memory-inspector",
"eclipse-cdt.peripheral-inspector",
"eclipse-cdt.peripheral-inspector"
]
}

22
.vscode/launch.json vendored
View File

@@ -56,16 +56,34 @@
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "-v DEBUG --isa 'tgc5c|mu_p' --backend asmjit -f fw/hello-world/hello.elf",
"openGdbConsole": true
},
{
"type": "gdb",
"request": "launch",
"name": "64bit VP with Linux",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa 'rv64gc|msu_vp' -v DEBUG --disass -l run.log -f build/Linux4TGC/opensbi/build/platform/riscv_vp/firmware/fw_payload.elf -m 40ms",
"openGdbConsole": true
},
{
"type": "gdb",
"request": "launch",
"name": "64bit VP with Linux with gdbserver",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa 'rv64gc|msu_vp' -f build/Linux4TGC/opensbi/build/platform/riscv_vp/firmware/fw_payload.elf -m 40ms -g 10000",
"openGdbConsole": true
}
],
"compounds": [
{
"name": "FW-Debug 32bit",
"configurations": ["32bit VP with gdbserver", "Attach to VP"]
"configurations": ["32bit VP with gdbserver", "Attach GDB to VP"]
},
{
"name": "FW-Debug 64bit",
"configurations": ["64bit VP with gdbserver", "Attach to VP"]
"configurations": ["64bit VP with gdbserver", "Attach GDB to VP"]
}
]
}

View File

@@ -2,7 +2,7 @@
"files.associations": {
"platform.h": "c"
},
"debug.allowBreakpointsEverywhere": true,
"debug.disassemblyView.showSourceCode": true,
"editor.rulers": [
{
"column": 140,
@@ -14,10 +14,15 @@
"--background-index",
"--compile-commands-dir=${workspaceFolder}/build"
],
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.copyCompileCommands": "${workspaceFolder}/build/compile_commands.json",
"cmake.options.statusBarVisibility": "hidden",
"cmake.options.advanced": {
"configure": {"projectStatusVisibility": "visible"},
"build": {"statusBarVisibility": "visible"}
},
"todo-tree.ripgrep.ripgrep": "/bin/rg",
"files.watcherExclude": {
"**/target": true
}
}