/** \file * \brief Architecture-independent parts of in-kernel GDB stub. * * This file implements the kernel-side GDB stubs for remote debugging when * running on hardware. It is loosely based on the public domain i386-stub.c * which is part of the GDB sources. * * The following gdb commands are supported: * *
command | function | Return value |
? | What was the last sigval ? | SNN (signal NN) |
g | return the value of the CPU registers | hex data or ENN |
G | set the value of the CPU registers | OK or ENN |
p | read the value of a single CPU register | hex data or ENN |
P | set the value of a single CPU register | OK or ENN |
mAA..AA,LLLL | Read LLLL bytes at address AA..AA | hex data or ENN |
MAA..AA,LLLL: | Write LLLL bytes at address AA.AA | OK or ENN |
c | Resume at current address | SNN (signal NN) |
cAA..AA | Continue at address AA..AA | SNN |
s | Step one instruction | SNN |
sAA..AA | Step one instruction from AA..AA | SNN |
D | GDB detached -- attempt to resume | (no reply) |
k | kill -- reboots the system | (no reply) |