【问题标题】:How can I call arm-none-eabi-gdb with -x parameter如何使用 -x 参数调用 arm-none-eabi-gdb
【发布时间】:2022-04-28 03:17:55
【问题描述】:

我想在安装 cortex-debug 后启动调试器时使用 -x 参数调用arm-none-eabi-gdb。我在launch.jsonsetting.json怎么办,谢谢你的帮助。

【问题讨论】:

    标签: linux visual-studio-code arm vscode-settings cross-compiling


    【解决方案1】:

    您可以尝试将以下任务添加到我们的 tasks.json 中:

     {
            "label": "flash",
            "type": "shell",
            "command": "arm-none-eabi-gdb",
            "args": [               
                "-x=\"${workspaceFolder}/.vscode/flash.gdb\"",                
            ],
            "group": "build",
            "problemMatcher": [],
            "dependsOn":["build"]
        },
    

    (当然,这假设您有另一个名为“build”的任务,并且您的“flash”任务依赖于它。这只是如何添加 -x 参数的示例)

    【讨论】:

      猜你喜欢
      • 2017-03-24
      • 2014-06-26
      • 1970-01-01
      • 2022-12-31
      • 1970-01-01
      • 2016-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多