Debugger: Fix and use centered PC by default

* Fix instruction-selection dependent functionality.
* Remove odd instruction position jumps in add/remove breakpoint.
* Make PC fixate at 1/3 of the frame because knowing future instructions is more important than knowing the previous.
This commit is contained in:
Eladash 2022-07-29 18:58:38 +03:00 committed by Ivan
parent 7bb2d94e53
commit d30ac20fad
5 changed files with 92 additions and 58 deletions

View file

@ -68,8 +68,6 @@ void breakpoint_list::RemoveBreakpoint(u32 addr)
}
}
Q_EMIT RequestShowAddress(addr);
if (!count())
{
hide();
@ -94,8 +92,6 @@ bool breakpoint_list::AddBreakpoint(u32 pc)
breakpoint_item->setData(Qt::UserRole, pc);
addItem(breakpoint_item);
Q_EMIT RequestShowAddress(pc);
show();
return true;