Skip to content

openmv/gdbrunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages