Lightlines
By leokemp223

debug-gdb-openocd

ZH
leokemp223554 installs

Inspect embedded firmware and its crash state.

What it does

Inspects embedded firmware through OpenOCD and GDB to report registers, stack traces, and crash-state observations.

When to use it

Use when debugging a Cortex-M target through OpenOCD, investigating abnormal firmware behavior, or checking whether the debugging environment is ready.

How to use it

Give it a firmware project with a symbol-bearing ELF and OpenOCD configuration clues; it runs the selected debugging session and returns commands and key observations.

What you provide

  • An existing project

Latest review

What you need · 6

Requires Python to run the bundled script, which uses the standard library and subprocess.

Requires OpenOCD to be installed; the script stops if it cannot find openocd.


Access · 2

This skill

Cortex-M

Write

Resets or halts your target

temporary .gdb file

Write

Creates a temporary GDB script