mirror of https://github.com/LIJI32/SameBoy.git
Fix a bug where jump-to breakpoint disassembled the wrong address under certain scenarios
This commit is contained in:
parent
636349d5f2
commit
54f45f2fd3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue