IT lexicon › Programming › gdbserver

gdbserver

Programming På svenska → Updated: 2026-11-05
More info
Type
Debugging tool
Owner
GNU Project
License
GPL

The small half of GDB that lives on the target and takes orders over a network or serial line, while the big half runs on the developer's machine.

The program gdbserver ships with GDB and is mostly used on embedded Linux: gdbserver :2345 ./app on the board, target remote board:2345 on the host. The target needs no symbols, no source and no full debugger — only the ability to control a process and answer the RSP.

A microcontroller has no process to attach to, so the role is filled by software translating RSP into JTAG or SWD through a debug probe: OpenOCD on port 3333, SEGGER's J-Link GDB Server on 2331, pyOCD. The Black Magic Probe does it more elegantly by running the server inside the probe. Hence the word often gets used generically for "whatever GDB is talking to".

← Back to the lexicon