The GDBServerFoundation framework

The GDBServerFoundation is a framework that greatly simplifies building gdbserver-compatible stubs. It handles packet decoding, RLE encoding, escaping/unescaping and provides implementations for the most common GDB packet types.

Building your own gdbserver-compatible stub with GDBServerFoundation is as easy as implementing the ISyncGDBTarget interface.

Download

You can download the GDBServerFoundation source code by cloning our Github repository.

License

The GDBServerFoundation framework is dual-licensed:

  • You can use it under the terms of the LGPL license (i.e. publish the source of all statically linked code).
  • You can alternatively purchase a commercial license from us to use it in your closed-source stubs.

The commercial license comes with 1 year of technical support.

Examples

The GDBServerFoundation comes with a sample Win32 server showing how to create a custom GDB stub with the framework. Additionally, the following projects are based on the framework:

Documentation

You can learn more about the framework by browsing the detailed source documentation.