Fix a bug where jump-to breakpoint disassembled the wrong address under certain scenarios

This commit is contained in:
Lior Halphon 2023-07-28 00:47:15 +03:00
parent 636349d5f2
commit 54f45f2fd3
1 changed files with 1 additions and 1 deletions

View File

@ -2512,8 +2512,8 @@ next_command:
else {
gb->non_trivial_jump_breakpoint_occured = true;
GB_log(gb, "Jumping to breakpoint: PC = %s\n", value_to_string(gb, gb->pc, true));
GB_cpu_disassemble(gb, gb->pc, 5);
GB_load_state_from_buffer(gb, gb->nontrivial_jump_state, -1);
GB_cpu_disassemble(gb, gb->pc, 5);
GB_debugger_break(gb);
}
}