We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ba744 commit ba3c35dCopy full SHA for ba3c35d
accel/tcg/cpu-exec.c
@@ -588,7 +588,13 @@ static inline bool cpu_handle_interrupt(CPUState *cpu,
588
else {
589
if (cc->cpu_exec_interrupt(cpu, interrupt_request)) {
590
replay_interrupt();
591
- cpu->exception_index = -1;
+ /*
592
+ * After processing the interrupt, ensure an EXCP_DEBUG is
593
+ * raised when single-stepping so that GDB doesn't miss the
594
+ * next instruction.
595
+ */
596
+ cpu->exception_index =
597
+ (cpu->singlestep_enabled ? EXCP_DEBUG : -1);
598
*last_tb = NULL;
599
}
600
/* The target hook may have updated the 'cpu->interrupt_request';
0 commit comments