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

Improve debugger threadsafety and consistency #10987

Merged
merged 7 commits into from
Jun 6, 2018

Conversation

unknownbrackets
Copy link
Collaborator

These are minor changes to the main core system that allow multiple connections (e.g. from #10909 and Windows debugger, or even multiple WebSockets) to work correctly, as well as a little cleanup.

The shutdown functions are changed to starting/started to enable some locks, but those aren't used yet. I'm including it here so we can merge this separately and have a build in case there are issues with the other places it impacts.

This should only minorly impact the current Windows debugger, right now.

Note: more changes will come when introducing stepping for Android/etc., but that's for later.

-[Unknown]

Otherwise we lose wakeups and hang.
This allows us to poll coreState and know if a new stepping needs to be
sent.  This is useful to allow e.g. regs to show changes per step.
Otherwise things can get freed while we're trying to inspect them.
It was crashing when accessing from another thread.

If in the future we go down to only the remote debugger, we could
potentially remove this.
@hrydgard hrydgard merged commit f9cfb05 into hrydgard:master Jun 6, 2018
@unknownbrackets unknownbrackets deleted the debugger-core branch June 6, 2018 19:16
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.

2 participants