Skip to content

Commit

Permalink
fix: Update DISASM on breakpoint disable/enable
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com>
  • Loading branch information
maximilien-noal committed Dec 10, 2024
1 parent cadfdaa commit 7a5316d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Spice86/ViewModels/BreakpointViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public BreakpointViewModel(
Enable();
}

internal event Action? Reached;

public BreakPointType Type { get; }

//Can't get out of sync since GDB can't be used at the same time as the internal debugger
Expand Down
2 changes: 2 additions & 0 deletions src/Spice86/ViewModels/DisassemblyViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private void DisableBreakpoint() {
return;
}
SelectedInstruction.Breakpoint.Disable();
UpdateDisassemblyInternal();
}

[RelayCommand(CanExecute = nameof(SelectedInstructionHasBreakpoint))]
Expand All @@ -193,6 +194,7 @@ private void EnableBreakpoint() {
return;
}
SelectedInstruction.Breakpoint.Enable();
UpdateDisassemblyInternal();
}


Expand Down

0 comments on commit 7a5316d

Please sign in to comment.