Skip to content

Conversation

@xusheng6
Copy link
Member

@xusheng6 xusheng6 commented Jan 6, 2026

Summary

  • Adds TTDAttachDialog for attaching TTD.exe to running processes (closes TTD tracing should support attaching to a running process and start tracing #600)
  • Adds "Attach and Record TTD Trace" menu action under Debugger > TTD submenu
  • Adds command line column to process list for better process identification
  • Updates DbgEngAdapter to use Windows APIs for local process enumeration to get command line information

Changes

  • ui/ttdrecord.cpp/h: New TTDAttachDialog class with process list, output directory, and trace child processes options
  • ui/attachprocess.cpp/h: Added command line column to ProcessListModel and ProcessItem
  • ui/ui.cpp: Added menu action for "Attach and Record TTD Trace"
  • core/adapters/dbgengadapter.cpp: Uses Windows APIs (CreateToolhelp32Snapshot, NtQueryInformationProcess) for local process enumeration with command lines
  • core/debugadapter.h, api/debuggerapi.h, api/ffi.h: Added m_commandLine field to DebugProcess struct
  • core/ffi.cpp, api/debuggercontroller.cpp: Updated FFI layer to pass command line through

Test plan

  • Open Binary Ninja with debugger
  • Go to Debugger > TTD > Attach and Record TTD Trace
  • Verify process list shows with PID, Name, and Command Line columns
  • Select a process and click Accept to attach TTD.exe to it
  • Verify regular "Attach To Process" dialog also shows command line column

🤖 Generated with Claude Code

xusheng6 and others added 2 commits January 6, 2026 18:03
- Add TTDAttachDialog for attaching TTD.exe to running processes
- Add "Attach and Record TTD Trace" menu action under Debugger > TTD
- Add command line column to process list for better process identification
- Update DbgEngAdapter to use Windows APIs for local process enumeration
  to get command line information
- Add m_commandLine field to DebugProcess struct across core, API, and FFI layers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Increase minimum width from 450/500 to 800 pixels for AttachProcessDialog
and TTDAttachDialog to better display the command line column.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@xusheng6 xusheng6 merged commit 3c87ea2 into dev Jan 7, 2026
@xusheng6 xusheng6 deleted the test_ttd_attach branch January 7, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTD tracing should support attaching to a running process and start tracing

2 participants