0

I am able to remote debug RapberryPi application with vscode config saying

            "gdbpath": "gdb-multiarch",
            "autorun": [
                "set architecture arm_any"
            ]

What is equivalent setting in CLion? I need set architecture arm_any run in gdb-multiarch after connect.

Dims
  • 47,675
  • 117
  • 331
  • 600

1 Answers1

0

I had this exact same issue today. My (somewhat hacky!) solution: I created a GDB script file in my repo which contains nothing but my initialization code as well as a reset command at the end:

set architecture arm_any

monitor reset halt

I then told CLion to source my script as a "reset command" in my debugger settings as shown in this screenshot.

Note that you have to tick the "after download" box in order to get your configuration to take effect as soon as you start the debugger. Otherwise you'll have to manually reset first.