Start gdb server
JLinkGDBServer -device NRF51 -if SWDStart gdb
arm-none-eabi-gdb <build-dir>/*.out Connect and reset
target remote localhost:2331 // connects to server
mon reset 0 // reset targetmon reset 0
Set a breakpooint:
break main.c:25Run to breakpoint
c
List locals in scope
info locals
List all variables in scope
info variables
List args
info args