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.3.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.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gdbrunner-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 be749c28669ca852652ff616c540b4467f16153d3fbc66ed9e5852e475b0a6d7
MD5 b7278292852d827a644021992a827481
BLAKE2b-256 35ac655857675c9f1cc1d3a093c1c2c267de04f286586bb62af4b0125c62bc03

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdbrunner-0.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: gdbrunner-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aef15234c7ec1ec8658fdb9c3205f96620c0dcfe549d9d1b93b997e8df82fcfd
MD5 e4627b95bef9e4edd3e9174035b06059
BLAKE2b-256 bbf9cb3cab1f02378313a158f35afd24ac5dc1354d40c452ac8d67f049c5c1be

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdbrunner-0.0.3-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