I read through GDB Monitor commands in CLion providing good insight, but I am having a slightly different issue:
My environment:
- Target: ARM Cortex M4 (STM32F401RE)
- ST-UTIL gdb server (https://github.com/texane/stlink)
- arm-none-eabi-gdb 7.7.1+dfsg-5+8~bpo8+1
- CLion 2016.3.2 Build #CL-163.10154.43
- Debian 8
In the GDB Remote Debug config panel, I've set:
GDB: /usr/bin/arm-none-eabi-gdb
Symbol file: /home/malachi/temp/mbed_test/mbed-os-program/BUILD/NUCLEO_F401RE/GCC_ARM/mbed-os-program.elf
From CLion, no matter what I do, I consistently get this for Console:
Cannot configure GDB defaults: No symbol table is loaded. Use the "file" command.
Debugger connected to localhost:4242
I've tried brute forcing 'file' with a .gdbinit but gdbinit seems ignored
Furthermore, it does indicate a connection to st-util running remotely, but I am unable to execute any commands (breakpoints, stepping, pause, etc) except for terminate - which does seem to terminate it.
If I use arm-none-eabi-gdb direct from command line (/usr/bin/arm-none-eabi-gdb
verified), things work as normal, breakpoints, stepping, etc. Also .elf symbols load properly direct from command line.
Lastly, if I use configuration of GDB: Default (Bundled)
I don't expect it to work well, but it actually gets further and allows a very limited functionality of pausing/resuming (but with absolutely no other abilities) and does not complain about the symbols