OSX GDB Launcher (for Embedded Systems)
The snippet can be accessed without any authentication.
Authored by
Jacques Supcik
launch.json 1.16 KiB
{
// 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": [
{
"name": "(arm-gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/app_a",
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"debugServerPath": "/usr/local/bin/JLinkGDBServer",
"debugServerArgs": "-device am3358",
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
// "miDebuggerArgs": "-silent",
"setupCommands": [
{ "text": "set architecture armv7" },
{ "text": "file ${workspaceRoot}/app_a" },
{ "text": "target remote localhost:2331" },
{ "text": "monitor reset" },
{ "text": "monitor go" },
{ "text": "monitor sleep 100" },
{ "text": "monitor halt" },
{ "text": "load" }
]
}
]
}
Please register or sign in to comment