如何在arm-none-eabi-gdb中启用漂亮的打印?

How to enable pretty-printing in arm-none-eabi-gdb?

提问人:qianchen 提问时间:11/9/2023 更新时间:11/9/2023 访问量:47

问:

我使用 C++ 为 STM32 开发,调试时很难监控 stl 容器中的值。

环境:

  • VSCode,带有 cortex-debug、嵌入式 IDE 插件
  • arm-none-eabi-gdb 12.2
  • SEGGER JLink(赛格JLink)

嵌入式 IDE 自动生成一个文件:launch.json

"configurations": [
    {
        "cwd": "${workspaceRoot}",
        "type": "cortex-debug",
        "request": "launch",
        "name": "JLink",
        "servertype": "jlink",
        "interface": "swd",
        "executable": "build\\debug\\RP_CppTemplate.elf",
        "runToEntryPoint": "main",
        "device": "STM32F407VE",
        "svdFile": ".pack/Keil/STM32F4xx_DFP.2.14.0/CMSIS/SVD/STM32F40x.svd",
        "liveWatch": {
            "enabled": true,
            "samplesPerSecond": 4
        }
    }
]
C++ GCC GDB STM32

评论

0赞 mitch_ 11/9/2023
这回答了你的问题吗?如何在 GDB 中漂亮地打印 STL 容器?

答: 暂无答案