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

Breakpoints: Fix crash after clearing all memory breakpoints #8669

Merged
merged 1 commit into from Mar 15, 2020

Conversation

container1234
Copy link
Contributor

This PR fixes crash after clearing memory breakpoints by pressing Clear button.

Core::RunAsCPUThread([&] {
m_mem_checks.clear();
JitInterface::ClearCache();
PowerPC::DBATUpdated();
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain why this is required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bug doesn't occur when memory point is deleted by pressing Delete button (not Clear button), so I compared MemChecks::Remove and MemChecks::Clear.
I don't know how it works internally but compared to Memchecks::Remove, MemChecks::Clear lacks JitInterface::ClearCache and PowerPC::DBATUpdated.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, that makes sense.

@leoetlino leoetlino merged commit d297080 into dolphin-emu:master Mar 15, 2020
@container1234 container1234 deleted the mbp branch March 16, 2020 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants