Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gdbserver binary for remote debugging #56

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Add gdbserver binary for remote debugging #56

merged 1 commit into from
Apr 26, 2023

Conversation

Blzut3
Copy link

@Blzut3 Blzut3 commented Apr 25, 2023

Found this project while looking for an easy to grab gdbserver executable for Windows. The prebuilt packages didn't have it, but it was a simple change since it was already being built.

@skeeto
Copy link
Owner

skeeto commented Apr 26, 2023 via email

@Blzut3
Copy link
Author

Blzut3 commented Apr 26, 2023

In regards to point 2, the GDB client actually requests transfer of the symbol information from the remote server automatically for MinGW-w64 at least. (I was a little shocked about how smooth that went myself actually.) Additionally the --multi switch smooths over some of the issues you mention, granted there seems to be a bug in the current version of GDB that causes it to fail an assert if you attach and detach from a running process (say background service).

My particular use case is development of a background service which needs to support a large range of Windows releases. As such I have test VMs for each OS release we support (about 14 at this time). So develop on the host machine, test on various VMs which have the absolute minimum amount of deviation from a bare bones OS install (just enough to make the hypervisor happy). This makes your project great over say msys2 since I don't need to further deviate from a base OS install. From my point of view this is all still "local development" since all my dependencies are vendored and all my remote systems are running on a single machine, but I understand if you consider that a stretch.

Honestly with modern C++ practices I've spent surprisingly little time in a debugger, but every now and then something goes non-obviously wrong and useful to have something. Sure I could run gdb client inside of the VM, but since each VM is a clean install they're not very comfortable to use.

@skeeto skeeto merged commit 5b2e053 into skeeto:master Apr 26, 2023
@skeeto
Copy link
Owner

skeeto commented Apr 26, 2023 via email

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.

None yet

2 participants