Multi-threading fix for linux debugging#962
Open
m0rkeulv wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorry, This PR was made by mistake, i was intending to merge it into my own master branch in my own fork, but now that its made here i might as well leave it here and get some feedback / help.
The backstory:
I am trying to build a Hashlink Debugger and when i try to debug on linux things crashes when i test multi-threaded code. my understanding is that it happens when a thread different than the main thread reaches a breakpoint and since the thread is not traced it crashes. This PR makes sure that new threads are traced (ptrace) to avoid the crash and be able to stop in breakpoints in other threads.
if this happen to solve the linux multi-thread debugging issue in an acceptable way feel free to remove all the AI generated comments explaining how the fix works. they where mostly useful for myself trying to understand how the AI suggested fix actually worked.