Fix status returned on interrupt

This commit is contained in:
2025-01-18 19:10:55 -05:00
parent d59da1009a
commit 16a2aaee92
2 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -311,7 +311,7 @@ impl Emulator {
}
let debug = DebugInfo {
sender,
stop_reason: Some(DebugStopReason::Trapped),
stop_reason: Some(DebugStopReason::Paused),
};
self.debuggers.insert(sim_id, debug);
self.state
@@ -334,7 +334,7 @@ impl Emulator {
}
fn debug_interrupt(&mut self, sim_id: SimId) {
self.debug_stop(sim_id, DebugStopReason::Trapped);
self.debug_stop(sim_id, DebugStopReason::Paused);
}
fn debug_stop(&mut self, sim_id: SimId, reason: DebugStopReason) {
@@ -686,7 +686,7 @@ pub enum DebugStopReason {
// We hit a watchpoint
Watchpoint(VBWatchpointType, u32),
// The debugger told us to pause
Trapped,
Paused,
}
struct DebugInfo {