1
0
Fork 0

display jump lines as selected if the destination is selected

This commit is contained in:
torusrxxx 2016-10-06 23:27:39 +08:00 committed by Duncan Ogilvie
parent 6b6c372340
commit 843492161d
1 changed files with 4 additions and 4 deletions

View File

@ -227,9 +227,12 @@ void CPUSideBar::paintEvent(QPaintEvent* event)
if(isJump(line)) //handle jumps
{
duint baseAddr = mDisas->getBase();
duint destVA = DbgGetBranchDestination(baseAddr + instr.rva);
JumpLine jmp;
jmp.isJumpGoingToExecute = DbgIsJumpGoingToExecute(instrVA);
jmp.isSelected = (selectedVA == instrVA);
jmp.isSelected = (selectedVA == instrVA || selectedVA == destVA);
jmp.isConditional = instr.branchType == Instruction_t::Conditional;
jmp.line = line;
@ -240,9 +243,6 @@ void CPUSideBar::paintEvent(QPaintEvent* event)
jumpoffset++;
duint baseAddr = mDisas->getBase();
duint destVA = DbgGetBranchDestination(baseAddr + instr.rva);
// Do not try to draw EBFE (Jump to the same line)
//if(destVA == instrVA)