forked from xenia-project/xenia
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Debug] Processor: breakpoint address fixes
- Update OnThreadBreakpointHit to use bp->ContainsHostAddress Sometimes guest PC doesn't map to the x64 exactly, so ResolveStack may return a guest PC different to the breakpoint that triggered it Processor code would just skip the breakpoint entirely if PC didn't match so any debugger wouldn't know what BP caused it Luckily BP does have a ContainsHostAddress func which seems perfect, but was somehow left unused Also added a hack to nudge the PC we tell GDB about to the BP's PC - Update StepGuest/HostInstruction to add step BP to front of map Fixes an issue where a different BP might get triggered before the step BP which could cause debugger to step again, causing assert error as a step BP already existed I noticed one more issue, if BPs are set on instructions very close together it might act on the same x64 instruction, causing assert when a BP is already placed and another BP tries to set on the same addr... Not really sure what best way to fix that is yet, for now just don't place BPs too close together!
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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