2025-09-21 16:18:35 +08:00
|
|
|
{
|
|
|
|
// 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": [
|
|
|
|
{
|
2025-09-22 13:33:48 +08:00
|
|
|
"name": "mini-gdbstub",
|
2025-09-21 16:18:35 +08:00
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/mini-gdbstub/build/emu",
|
2025-09-22 13:33:48 +08:00
|
|
|
"args": [
|
|
|
|
"./mini-gdbstub/build/emu_test.bin"
|
|
|
|
],
|
2025-09-21 16:18:35 +08:00
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}/mini-gdbstub",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
2025-09-22 13:33:48 +08:00
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "gdbstub",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/gdbstub/build/stub",
|
|
|
|
"args": [],
|
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}/gdbstub",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
2025-09-21 16:18:35 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|