DragonOS/.vscode/launch.json
Samuel Dai 717bd9209a
feat(ci): add CI support for building and booting riscv64 kernel in workflow, within oscomp environment (#6)
* feat(ide): add gdb-multiarch debug support for better stack tracking

* feat(test): add oscomp testcase aquirement

* feat(ci): bump to oscomp test

* feat(ci): new ci procedure

* feat(ci): update CI workflow to replace git mirror and remove unnecessary userland build condition
2025-03-21 22:47:57 +08:00

48 lines
1.7 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug RISCV64 lldb",
"stopOnEntry": false,
"targetCreateCommands": ["target create ${workspaceFolder}/bin/riscv64/kernel/kernel.elf"],
"processCreateCommands": [
"gdb-remote localhost:1234",
"settings set target.process.follow-fork-mode child",
"continue" // Get over the first trap into the kernel
],
"args": [],
"cwd": "${workspaceFolder}",
"sourceLanguages": ["c", "cpp", "rust"],
"console": "internalConsole"
},
{
"type": "cppdbg",
"request": "launch",
"name": "Debug RISCV64 gdb-multiarch",
"stopAtConnect": true,
"program": "${workspaceRoot}/bin/riscv64/kernel/kernel.elf",
"miDebuggerPath": "gdb-multiarch",
"miDebuggerServerAddress": "localhost:1234",
"postRemoteConnectCommands": [
{
"text": "set follow-fork-mode child"
}
],
"useExtendedRemote": true,
"args": [],
"cwd": "${workspaceRoot}",
"environment": [],
"internalConsoleOptions": "neverOpen",
"externalConsole": false,
"logging": {
"engineLogging": false
},
"MIMode": "gdb"
}
]
}