Skip to content

Commit

Permalink
Debugger: Fix resume not skipping breakpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed May 2, 2018
1 parent 8f8bca2 commit 043a17f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Debugger/DisassemblyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ void DisassemblyFunction::generateBranchLines()

if (lane == -1)
{
// error
// Let's just pile on.
lines[i].laneIndex = 15;
continue;
}

Expand Down
2 changes: 2 additions & 0 deletions Core/Debugger/WebSocket/CPUCoreSubscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "Common/StringUtils.h"
#include "Core/Core.h"
#include "Core/CoreTiming.h"
#include "Core/Debugger/Breakpoints.h"
#include "Core/Debugger/WebSocket/CPUCoreSubscriber.h"
#include "Core/Debugger/WebSocket/WebSocketUtils.h"
#include "Core/MIPS/MIPS.h"
Expand Down Expand Up @@ -71,6 +72,7 @@ void WebSocketCPUResume(DebuggerRequest &req) {
return req.Fail("CPU not stepping");
}

CBreakPoints::SetSkipFirst(currentMIPS->pc);
if (currentMIPS->inDelaySlot) {
Core_DoSingleStep();
}
Expand Down

0 comments on commit 043a17f

Please sign in to comment.