Re: porting gdbserver
Christo Crause via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAGOmfbFj7MbnMhrS83t77rrg26UkqEE2i-Kb8tFQU=LvOWF2-Q@mail.gmail.com> |
On Thu, 15 Oct 2020, 20:24 Luis Machado via Gdb, <[email protected]> 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