1
0
Fork 0

Changed default double-click behavior to follow jumps and calls in disassembly and stack widgets (#2398)

This commit is contained in:
Michael 2020-07-24 16:09:09 +02:00 committed by GitHub
parent 6ad3a5b558
commit cd91d863ad
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 3 deletions

View File

@ -102,7 +102,12 @@ void CPUDisassembly::mouseDoubleClickEvent(QMouseEvent* event)
// (Disassembly) Assemble dialog
case 2:
assembleSlot();
{
duint dest = DbgGetBranchDestination(rvaToVa(getInitialSelection()));
if(DbgMemIsValidReadPtr(dest))
gotoAddress(dest);
}
break;
// (Comments) Set comment dialog

View File

@ -530,11 +530,20 @@ void CPUStack::mouseDoubleClickEvent(QMouseEvent* event)
}
break;
default:
case 1: // value
{
modifySlot();
}
break;
default:
{
duint wVa = rvaToVa(getInitialSelection());
STACK_COMMENT comment;
if(DbgStackCommentGet(wVa, &comment) && strcmp(comment.color, "!rtnclr") == 0)
followDisasmSlot();
}
break;
}
}