Skip to content

Commit bf78830

Browse files
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

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ add_subdirectory(src/state)
188188
add_subdirectory(src/replay)
189189
add_subdirectory(src/cluster)
190190

191+
# GDB RSP backend (Linux only for now)
192+
option(TRACESMITH_BUILD_GDB "Build GDB RSP backend" ON)
193+
if(TRACESMITH_BUILD_GDB AND UNIX)
194+
add_subdirectory(src/gdb)
195+
endif()
196+
191197
# CLI tools
192198
if(TRACESMITH_BUILD_CLI)
193199
add_subdirectory(cli)

0 commit comments

Comments
 (0)