-
Notifications
You must be signed in to change notification settings - Fork 184
Fix debugging on macOS and add fallback debug method #421
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
Fix debugging on macOS and add fallback debug method #421
Conversation
|
I've also added a new section to the documentation about debugging on macOS. |
325e584 to
223e0f6
Compare
|
@Snaipe debugbreak is currently broken on Apple silicon, but their development branch is 1 commit ahead of the previous release, containing a fix for our problem: https://github.com/scottt/debugbreak/commits/master Can I bump the submodule to point to the mentioned commit? |
|
It seems there is an issue with the mentioned debugbreak commit, it won't work when compiling with GCC on macOS: A bugfix proposal is already provided in the above issue. |
|
I don't mind using non-tagged commits, be it there or on forks. To be fair we could probably vendor it ourselves here too; we already do this with valgrind. |
|
Let's see what happens with scottt/debugbreak#25. I'll try to "vendor" the change after waiting a few days. |
d501d5a to
2f0450a
Compare
|
LGTM; could you add a ChangeLog entry for the fix? |
Support macOS "debugserver" and fallback "idle" debug method
…ound This is done only when no specific debugger type is specified by the user.
The following contribution fixes a gcc compilation issue on macOS: scottt/debugbreak#25 This commit replaces the upstream repo with a fork until the above PR gets integrated into the upstream master.
Apple silicon support
2f0450a to
af870a1
Compare
Snaipe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, two nits on the changelog but other than that feel free to merge once these are fixed
|
I really don't like doing this, but I temporarly replaced debugbreak with a fork. The forked repo contains 2 small patches on top of the upstream's master, which fixes a compilation issue on macOS with a real gcc compiler. Those 2 patches have been contributed back to upstream (scottt/debugbreak#25), hopefully, they will be integrated soon. I think fully bundling debugbreak is not worth it currently, as there are plenty of improvement possibilities on ARM devices, and it would be easier to follow those future changes with submodules. |
af870a1 to
1cc3911
Compare
|
Using a fork is fine. Criterion had to use a special fork of nanomsg for years with some changes to make it fork-safe until BoxFort was introduced, it can live with a fork of debugbreak for a while. |
|
Thank you. |
--debugnow uses the official macOSdebugserverby default (if it's onPATH)--debugwill fall back to theidlemethod in case no debugger can be foundDepends on Snaipe/BoxFort#36
Fixes #420