Skip to main content

GDB debug server launcher for embedded targets

Project description

🐛 gdbrunner

A simple CLI tool that starts a GDB server and automatically attaches GDB to debug embedded targets.

✨ Features

  • 🔌 Multiple backends - Supports J-Link and ST-Link debug probes
  • 🔍 Auto-discovery - Automatically finds STM32CubeProgrammer installation
  • 🧹 Clean lifecycle - Starts the server, attaches GDB, and cleans up when done
  • ⚙️ Configurable - JSON-based backend configuration for easy customization

📦 Installation

pip install gdbrunner

🚀 Usage

gdbrunner <backend> [options] elf

Backends

  • jlink - J-Link GDB server
  • stlink - ST-Link GDB server

Examples

# 🔧 Start J-Link and attach GDB
gdbrunner jlink --device STM32H743VI firmware.elf

# 🔧 Start ST-Link and attach GDB (auto-discovers CubeProgrammer path)
gdbrunner stlink firmware.elf

# 👀 Dry run - print server command without running
gdbrunner jlink --device STM32H743VI --dryrun firmware.elf

# 📺 Show server output for debugging connection issues
gdbrunner stlink --show-output firmware.elf

Run gdbrunner --help for all options.

📄 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdbrunner-0.0.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdbrunner-0.0.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file gdbrunner-0.0.4.tar.gz.

File metadata

  • Download URL: gdbrunner-0.0.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gdbrunner-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5fb0f41ff4724eb19493c8bdb252437809a2281eafec3ff2a0b785ff694decac
MD5 0b16c0103d9669c72bfe7422b004beb2
BLAKE2b-256 caa27640766a7a349e170205c2a49e5e563cc59a2324af9043c001e6cb982d57

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdbrunner-0.0.4.tar.gz:

Publisher: package.yml on openmv/gdbrunner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gdbrunner-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: gdbrunner-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gdbrunner-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fba674dcdfca0ceff340ecc86cc2f01b8a58bd5d4f4b3dbef743455b3c981d75
MD5 ebcb7a8d091260a9a719a507f5652ef1
BLAKE2b-256 e39581d2c805b69a5c7179dfa43c1018196f54df51a032a9cb9edb4afaf8cb34

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdbrunner-0.0.4-py3-none-any.whl:

Publisher: package.yml on openmv/gdbrunner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page