porting gdbserver

Christo Crause christo.crause@gmail.com
Fri Oct 16 06:25:32 GMT 2020


On Thu, 15 Oct 2020, 20:24 Luis Machado via Gdb, <gdb@sourceware.org> wrote:

> Hi,
>
> On 10/15/20 1:34 PM, William Tambe via Gdb wrote:
> > Is there an easy to follow documentation or commit that shows how to port
> > gdbserver for baremetal ?
> >
>
> I'm afraid there isn't. I suppose you are talking about actually coming
> up with a debugging stub that implements the most minimal set of remote
> protocol packets, right? Not "gdbserver" itself, which is always OS-hosted.


An example of a bare metal stub on an 8 bit AVR:
https://github.com/jdolinay/avr_debug

The remote protocol handling is implemented here
https://github.com/jdolinay/avr_debug/blob/master/avr8-stub/avr8-stub.c


More information about the Gdb mailing list