Setting up GDB in Eclipse
Configuring Eclipse Debugger
In your Eclipse project go to
Run->Debug Configurations...
Select the
Debugger
tab.Select the
Connect to remote GDB server
radio button and underHost Name
enter localhost and underPort Number
enter 3333
Hit Apply
Launching GDB Debugging in Eclipse with Lager
Plug device into Lager Gateway
Connect to device, e.g.
lager connect --device stm32f3x --interface stlink --transport hla_swd
Start gdb server
~ lager gdbserver
Serving GDB on localhost:3333. Press Ctrl+C to quit.
In Eclipse start the debugger.