Skip to content
Snippets Groups Projects

OSX GDB Launcher (for Embedded Systems)

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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" }
                ]
            }
        ]
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment