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,8 +102,13 @@ void CPUDisassembly::mouseDoubleClickEvent(QMouseEvent* event)
// (Disassembly) Assemble dialog // (Disassembly) Assemble dialog
case 2: case 2:
assembleSlot(); {
break; duint dest = DbgGetBranchDestination(rvaToVa(getInitialSelection()));
if(DbgMemIsValidReadPtr(dest))
gotoAddress(dest);
}
break;
// (Comments) Set comment dialog // (Comments) Set comment dialog
case 3: case 3:

View File

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