vscode debug: support CSKY Debug
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb.exe"
}
+ },
+ {
+ "name": "CSKY Debug @ Windows/Linux",
+ "type": "cppdbg",
+ "request": "launch",
+ "program": "${workspaceRoot}\\out\\helloworld@hobbit1_evb\\binary\\helloworld@hobbit1_evb.elf",
+ "args": [],
+ "stopAtEntry": true,
+ "cwd": "${workspaceRoot}",
+ "environment": [],
+ "externalConsole": true,
+ "miDebuggerServerAddress": "localhost:8888",
+ "serverLaunchTimeout": 2000,
+ "targetArchitecture": "X86_64",
+ "setupCommands": [
+ {
+ "text": "cd ${workspaceRoot}"
+ },
+ {
+ "text": "source .gdbinit"
+ },
+ {
+ "text": "target jtag jtag://localhost:8888"
+ },
+ {
+ "text": "file out/helloworld@hobbit1_evb/binary/helloworld@hobbit1_evb.elf"
+ },
+ {
+ "text": "set debug-in-rom"
+ },
+ {
+ "text": "hbreak application_start"
+ }
+ ],
+ "customLaunchSetupCommands": [],
+ "launchCompleteCommand": "exec-run",
+ "linux": {
+ "MIMode": "gdb",
+ "miDebuggerPath": "csky-abiv2-elf-gdb"
+ },
+ "windows": {
+ "MIMode": "gdb",
+ "miDebuggerPath": "${workspaceRoot}\\build\\compiler\\gcc-csky-abiv2\\Win32\\bin\\csky-abiv2-elf-gdb.exe"
+ }
}
]
}
