Commands for a minimal GDB stub?

Juha Aaltonen
Mon Nov 30 20:58:00 GMT 2015

In case it's of any help, I've been writing a bit more than minimal
bare metal standalone stub/server/agent/whatchacallit for Raspberry Pi
2B (Cortex-A7).
It might be helpful if you are wondering about details of the remote
serial protocol.

On Tue, Nov 24, 2015 at 6:41 PM, Tristan Gingold <> wrote:
>> On 24 Nov 2015, at 15:38, Clifford Wolf <> wrote:
>> On Tue, Nov 24, 2015 at 02:51:49PM +0100, Tristan Gingold wrote:
>>> I think the documentation is slightly incorrect.  For an almost minimal
>>> gdb stub, I have also implemented:
>>> ?, z, Z, qSupported, qC, qSymbol::, P, k, H
>>> z, Z, H, k, qSupported returned $#00.
>>> You shouldn’t be very far from having a communication.
>> thanks. I've now added 'S05' as response to '?' and now I get to the point
>> where gdb actually queries the register file using the 'g' command. So I
>> think I'm now where the actual work starts..  ;)
>> again, thanks a lot for your help!
> You’re welcome.  Note there are a few examples of stubs within gdb/stubs.
> Tristan.

More information about the Gdb mailing list