mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-3018: Navigate/activate by double-click. Various related fixes.
This commit is contained in:
parent
3073268203
commit
d0c8c5a77a
63 changed files with 1182 additions and 713 deletions
|
@ -264,7 +264,8 @@ public class GdbModelTargetSession extends DefaultTargetModelRoot
|
|||
* or be used as an example for other implementations.
|
||||
*/
|
||||
if (!PathUtils.isAncestor(this.getPath(), obj.getPath())) {
|
||||
throw new DebuggerIllegalArgumentException("Can only focus a successor of the scope");
|
||||
throw new DebuggerIllegalArgumentException(
|
||||
"Can only activate a successor of the scope");
|
||||
}
|
||||
TargetObject cur = obj;
|
||||
while (cur != null) {
|
||||
|
|
|
@ -75,8 +75,11 @@ public class GdbModelTargetStackFrame
|
|||
|
||||
this.registers = new GdbModelTargetStackFrameRegisterContainer(this);
|
||||
|
||||
changeAttributes(List.of(), List.of(registers), Map.of( //
|
||||
DISPLAY_ATTRIBUTE_NAME, display = computeDisplay(frame)),
|
||||
changeAttributes(List.of(),
|
||||
List.of(
|
||||
registers),
|
||||
Map.of(
|
||||
DISPLAY_ATTRIBUTE_NAME, display = computeDisplay(frame)),
|
||||
"Initialized");
|
||||
setFrame(frame);
|
||||
}
|
||||
|
@ -99,14 +102,14 @@ public class GdbModelTargetStackFrame
|
|||
this.func = frame.getFunction();
|
||||
// TODO: module? "from"
|
||||
|
||||
changeAttributes(List.of(), List.of( //
|
||||
registers //
|
||||
), Map.of( //
|
||||
PC_ATTRIBUTE_NAME, pc, //
|
||||
FUNC_ATTRIBUTE_NAME, func, //
|
||||
DISPLAY_ATTRIBUTE_NAME, display = computeDisplay(frame), //
|
||||
VALUE_ATTRIBUTE_NAME, pc //
|
||||
), "Refreshed");
|
||||
changeAttributes(List.of(),
|
||||
List.of(
|
||||
registers),
|
||||
Map.of(
|
||||
PC_ATTRIBUTE_NAME, pc,
|
||||
FUNC_ATTRIBUTE_NAME, func,
|
||||
DISPLAY_ATTRIBUTE_NAME, display = computeDisplay(frame)),
|
||||
"Refreshed");
|
||||
}
|
||||
|
||||
protected void invalidateRegisterCaches() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue