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
- arm-none-eabi-gdb 184.108.40.20660616-cvs
- CLion 2016.2.2, Build #CL-162.1967.7
- Ubuntu 16.04
I have the following in my .gdbinit file:
target remote localhost:2331 #(I remove this line when debugging with CLion)
set verbose on
The thing that has troubled me for days now, is that this works fine if I debug with gdb directly from a terminal, but not when I use the debugger in CLion. In CLion I get the error:
"monitor" command not supported by this target.
My theory is that the terminal accepts the "monitor reset" command (at least it doesn't complain). CLion on the other hand, prints an error, but appears to move on afterwards without doing the reset. The consequence seems to be that when I start a new debugging session in CLion I don't start at the beginning of main().
Is CLion blocking the monitor commands? If so, then why and is there a workaround?
I have the feeling that my questions might be related to CPP-7322 and CPP-7256.