mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Merge pull request #4706 from Kingcom/Debugger
Automatically pause core when changing breakpoints
This commit is contained in:
commit
1c04e923f6
@ -324,13 +324,24 @@ const std::vector<BreakPoint> CBreakPoints::GetBreakpoints()
|
|||||||
|
|
||||||
void CBreakPoints::Update(u32 addr)
|
void CBreakPoints::Update(u32 addr)
|
||||||
{
|
{
|
||||||
if (MIPSComp::jit && Core_IsInactive())
|
if (MIPSComp::jit)
|
||||||
{
|
{
|
||||||
|
bool resume = false;
|
||||||
|
if (Core_IsStepping() == false)
|
||||||
|
{
|
||||||
|
Core_EnableStepping(true);
|
||||||
|
Core_WaitInactive();
|
||||||
|
resume = true;
|
||||||
|
}
|
||||||
|
|
||||||
// In case this is a delay slot, clear the previous instruction too.
|
// In case this is a delay slot, clear the previous instruction too.
|
||||||
if (addr != 0)
|
if (addr != 0)
|
||||||
MIPSComp::jit->ClearCacheAt(addr - 4, 8);
|
MIPSComp::jit->ClearCacheAt(addr - 4, 8);
|
||||||
else
|
else
|
||||||
MIPSComp::jit->ClearCache();
|
MIPSComp::jit->ClearCache();
|
||||||
|
|
||||||
|
if (resume)
|
||||||
|
Core_EnableStepping(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redraw in order to show the breakpoint.
|
// Redraw in order to show the breakpoint.
|
||||||
|
Loading…
Reference in New Issue
Block a user