GP-3018: Navigate/activate by double-click. Various related fixes.

This commit is contained in:
Dan 2023-01-20 14:04:42 -05:00
parent 3073268203
commit d0c8c5a77a
63 changed files with 1182 additions and 713 deletions

View file

@ -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) {

View file

@ -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() {