スキル一覧に戻る
mgreenly

gdbserver

by mgreenly

An AI Coding Agent

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: gdbserver description: GDB Server skill for the ikigai project

GDB Server

Description

Remote debugging with gdbserver for TUI apps that use alternate screen buffer.

Why gdbserver

This app uses the alternate terminal buffer. Running GDB directly would conflict with the TUI. gdbserver separates the debugger from the application's terminal.

Workflow

Terminal 1 - Start app under gdbserver:

gdbserver :1234 ./ikigai

Terminal 2 - Connect with GDB:

gdb ./ikigai -ex "target remote :1234"

Key Commands

bt                  # Backtrace
frame N             # Select stack frame
info locals         # Local variables
print var           # Inspect variable
list                # Source at current location
break file:line     # Set breakpoint
continue            # Resume execution
step / next         # Step into / over

When Crashes Occur

gdbserver keeps the crashed process frozen. Connect and inspect:

gdb ./ikigai -ex "target remote :1234"
(gdb) bt            # See crash location
(gdb) info registers
(gdb) print *ptr    # Inspect state at crash

Limitations

  • TUI output not visible (process attached to gdbserver)
  • Very early crashes may need coredump analysis instead
  • Inspect internal state via variables, not screen output

References

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です