adds VSCode configuration

This commit is contained in:
2025-07-20 12:10:04 +02:00
parent a45db1d245
commit 20660d52ab
4 changed files with 35 additions and 21 deletions

30
.vscode/launch.json vendored
View File

@@ -5,16 +5,18 @@
"version": "0.2.0",
"configurations": [
{
"type": "gdb",
"type": "gdbtarget",
"request": "attach",
"name": "Attach-to-gdbserver",
"executable": "./fw/hello-world/hello",
"target": ":10000",
"remote": true,
"program": "./fw/hello-world/hello",
"imageAndSymbols": {
"symbolFileName": "./fw/hello-world/hello"
},
"target": {
"port": "10000"
},
"cwd": "${workspaceRoot}",
"valuesFormatting": "prettyPrinters",
"gdbpath": "/opt/riscv/bin/riscv32-unknown-elf-gdb",
"debugger_args": [],
"gdb": "riscv64-unknown-elf-gdb",
"presentation": {
"hidden": true,
"group": "FW Debug",
@@ -24,10 +26,9 @@
{
"type": "gdb",
"request": "launch",
"name": "Launch-VP-with-gdbserver",
"name": "Launch VP with gdbserver",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
"target": "./build/src/tgc-vp",
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "-f fw/hello-world/hello -g 10000",
"presentation": {
"hidden": true,
@@ -38,16 +39,17 @@
{
"type": "gdb",
"request": "launch",
"name": "VP-Debug",
"name": "Launch VP",
"cwd": "${workspaceRoot}",
"program": "${workspaceFolder}/out/build/Debug/src/riscv-vp",
"arguments": "--isa ? -f fw/hello-world/hello"
"program": "${workspaceFolder}/build/Debug/src/riscv-vp",
"arguments": "--isa tgc5c -f fw/hello-world/hello",
"openGdbConsole": true
},
],
"compounds": [
{
"name": "FW-Debug",
"configurations": ["Launch-VP-with-gdbserver", "Attach-to-gdbserver"]
"configurations": ["Launch VP with gdbserver", "Attach-to-gdbserver"]
}
]
}