GDB Monitor commands in CLion

前端 未结 2 540
感动是毒
感动是毒 2021-02-06 08:30

I\'m trying to debug an embedded project using remote GDB. My system:

  • Target: ARM Cortex M0.
  • SEGGER J-Link GDB Server V6.10 Command Line Version
2条回答
  •  执念已碎
    2021-02-06 08:52

    Looking around for the exact same issue, I came across this GitHub project that has a great step-by-step guide on setting up a JLink debugger on CLion. What really helped me out is the script that generates the .gdbinit in the user home directory.

    There is no need to add a file /firmware.elf command as this is taken care of by CLion when a debug session is launched. On the other hand, a load command is necessary to flash your target.

提交回复
热议问题