Skip to content

Add local launch support to GDB MI adapter#1036

Open
xusheng6 wants to merge 1 commit intodevfrom
gdb_mi_launch_refactor
Open

Add local launch support to GDB MI adapter#1036
xusheng6 wants to merge 1 commit intodevfrom
gdb_mi_launch_refactor

Conversation

@xusheng6
Copy link
Copy Markdown
Member

Summary

  • Add Execute/ExecuteWithArgs implementation to the GDB MI adapter for local debugging
  • Extract common GDB startup logic into StartGdbAndDetectArch helper
  • Add CanExecute to GdbMiAdapterType for Linux/macOS ELF and Mach-O binaries
  • Register launch-related settings (executable path, working directory, command line args)
  • Track local vs remote sessions with m_isLocalSession flag

Test plan

  • Launch a local ELF binary using the GDB MI adapter on Linux
  • Verify breakpoints, stepping, and stop/resume work in local mode
  • Verify remote connect still works as before
  • Verify restart works for both local and remote sessions

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant