Commit bf78830
committed
feat(gdb): add GDB RSP backend for GPU-aware debugging (v0.10.0)
Implement TraceSmith as a GDB remote debugging backend with GPU awareness:
Core Components:
- RSPHandler: GDB Remote Serial Protocol server implementation
- ProcessController: Process control via ptrace (Linux) / Mach API (macOS)
- GPUDebugEngine: GPU state management, breakpoints, and trace replay
Features:
- Automatic GPU state capture at CPU breakpoints
- GPU kernel call history tracking
- GPU memory monitoring via MemoryProfiler integration
- Trace capture/save/load with SBT format
- Trace replay debugging with step/seek controls
- GPU-specific breakpoints (kernel launch, memcpy, memset)
- Custom GDB monitor commands (ts status, ts kernels, ts trace, etc.)
Platform Support:
- Linux: Full support via ptrace
- macOS: Basic support via Mach API (partial ptrace)
Test Results:
- 85 unit tests passing (RSP protocol, GDB types, GPU debug engine)1 parent 21265de commit bf78830
17 files changed
Lines changed: 6295 additions & 0 deletions
File tree
- docs
- include/tracesmith/gdb
- src/gdb
- tests
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
0 commit comments