GDB stub that allows debugging of embedded devices
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Added buildscript for Seagate HDD high memory stub May 6, 2014
include Added configuration switch for CRC checksum code; Added recovery from… May 6, 2014
link Added buildscript for Seagate HDD high memory stub May 6, 2014
scripts Added filter for non-gdb HDD output to Seagate flasher script May 6, 2014
src
test_programs Added linker script for test programs Mar 27, 2014
xml Fixed arm-gdbstub.xml target description (banked registers were in wr… May 12, 2014
.gitignore gitignore Jan 22, 2014
CMakeLists.txt Added buildscript for Seagate HDD high memory stub May 6, 2014
LICENSE Initial commit Dec 14, 2013
README.md Fixed building of several stubs in parallel Mar 17, 2014

README.md

avatar-gdbstub

GDB stub that allows debugging of embedded devices

This is the source code for a very small GDB stub implementation. The stub is supposed to communicate with the host GDB over the GDB serial protocol or a custom protocol (Avatar).

Depending on how the serial line is used, you need a Multiplexer to set up the environment for you and send any stuff that is needed until the GDB stub is running.

Adapting the GDB stub for your platform is easy: Copy one of the existing gdbstub_*.cmake files in the cmake/ directory and adapt it to your platform. You might need to develop additional serial drivers and platform initialization files.

test_programs contains simple programs that test one functionality of an embedded system - e.g., serial output, CPU features, debug features. Those programs are meant to discover an embedded system before the GDB stub is ported.