Debug gdb openocd

From LeoKemp223/embed-ai-tool · View interactive version

Debug gdb openocd is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 OpenOCD 启动或附着 GDB 会话,调用自带脚本完成固件下载、在线调试或崩溃现场检查时使用。

How to use this skill

Skill file

GDB OpenOCD 调试

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/debug-playbook.md 中的决策树,判断应使用条件断点、普通断点还是 OpenOCD Telnet。
  2. 再阅读 references/usage.md,确认本次是环境探测,还是执行调试会话。
  3. 若不确定环境是否就绪,先运行自带脚本 scripts/gdb_debugger.py 的 --detect 模式确认。
  4. 根据用户意图选择调试模式:download-and-halt(默认)、attach-only 或 crash-context。
  5. 使用 --elf 指定符号文件,配合 --interface + --target 或 --config 启动调试。
  6. 读取脚本输出的调试结果,重点关注寄存器状态、回溯帧和 Fault 寄存器(crash-context 模式)。
  7. 将调试配置和关键观察写回 Project Profile,并在需要时交给下游 skill。

失败分流

平台说明

输出约定

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.