Page 1 of 1

GBD command line interface with Segger J-Link

Posted: Tue Feb 12, 2019 1:18 am
by emacs
When using TrueStudio with the ST-LINK I have a GDB command line interface in the console window. Extremely convenient for setting breakpoints, e.g.:

Code: Select all

b my_function


For some reason same doesn't work with the Segger J-Link. There is plenty of GDB output in the console window, but I can't interact with the GDB.

Setting breakpoint via menu is inconvenient; requires too many mouse clicks.

Does anyone know how to get GDB command line when using Segger J-Link?

Thanks.

Re: GBD command line interface with Segger J-Link

Posted: Tue Feb 12, 2019 2:51 am
by chriskeeser
when interacting with the console in debug mode, there is console drop down on the right hand side which should let you switch between the 5 (give or take) consoles. One of those consoles is the GDB server (which is what you see normally) and the other is the GDB client (should say something like /./././././JLinkGDB). If you select the GDB client console/terminal, you can issue normal GDB commands.

Re: GBD command line interface with Segger J-Link

Posted: Tue Feb 12, 2019 3:58 am
by emacs
That works! Thanks!

Further to this, to prevent TrueStudio from switching back to the GDB server console each time there is some output there, click on the 'Pin Console' button when the GDB client console is visible.