Skip to content

Rewrite GDB server in Python#297

Open
mrexodia wants to merge 1 commit into
mandiant:masterfrom
HexRaysSA:gdb-improvements
Open

Rewrite GDB server in Python#297
mrexodia wants to merge 1 commit into
mandiant:masterfrom
HexRaysSA:gdb-improvements

Conversation

@mrexodia

@mrexodia mrexodia commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

The upstream udbserver dependency was not working correctly (missing packets, no proper stop reasons etc), so I had the clanker (gpt-5.6-sol) rewrite it completely in Python.

image

@mrexodia
mrexodia marked this pull request as draft July 15, 2026 14:17

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a GDB compatibility proxy (GdbCompatibilityProxy) to provide Windows process metadata (such as loaded PE images, thread info, and TEB address) to Unicorn's GDB server, enabling better integration with debuggers like IDA Pro. The review feedback highlights several areas for improvement, including correcting the RSP packet size calculation to account for framing overhead, preventing proxy execution if stopped during connection retries, properly closing the DefaultSelector to avoid resource leaks, addressing compatibility risks with the hardcoded qSupported response, and updating test assertions to validate the full packet length.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread speakeasy/gdb.py Outdated
Comment thread speakeasy/gdb.py Outdated
Comment thread speakeasy/gdb.py Outdated
Comment thread speakeasy/gdb.py
Comment thread tests/test_gdb_compat.py Outdated
@mrexodia mrexodia changed the title Improve GDB packet support for IDA using a simple proxy server Rewrite GDB server in Python Jul 15, 2026
@mrexodia
mrexodia marked this pull request as ready for review July 15, 2026 17:35
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