mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 21:40:59 +08:00
GP-3018: Navigate/activate by double-click. Various related fixes.
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
+13
-10
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user