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

Debugger: Fix instruction pointer for good #11909

Merged
merged 2 commits into from May 2, 2022

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented May 1, 2022

Although #11893 made this problem consistent as ShowPC() is called in master unconditionally. But this has always used to be a problem - when wandering in memory, sometimes most unexpectedly, the instruction pointer of the debugger went to thread PC. Once thread state has been changed (reasons vary greatly), ShowPC() has been called and the debugger bounded back to PC.
This PR makes the debugger able to distinguish when we want to stroll in memory and when we want to view the current code the thread executes by disabling auto-branching to PC when the user has scrolled or clicked on "Go To Addresss". This is re-enabled whenever the user pauses the thread, requested an instruction stepping or clicked "Go To PC".

@elad335 elad335 force-pushed the fix-pointer branch 2 times, most recently from 0c8739e to d213164 Compare May 1, 2022 12:43
@Nekotekina Nekotekina merged commit c14e79f into RPCS3:master May 2, 2022
@elad335 elad335 deleted the fix-pointer branch September 19, 2022 05:58
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