Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-3720: Fix error in tracking drop-down with certain watches.

Danbec92c3bdc18
diff --git a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java
index b0c0251289..aa8dbe11bc 100644
--- a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java
+++ b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java
@@ -308,9 +308,12 @@ public enum SleighUtils {
match(tree, SleighParser.OP_DEREFERENCE, onSize, onOffset);
return;
default:
- throw new AssertionError(
- "OP_DEREFERENCE with 2 children where child[0] is " +
- SleighParser.tokenNames[child0.getType()]);
+ matchTree(tree, SleighParser.OP_DEREFERENCE, children -> {
+ throw new AssertionError(
+ "OP_DEREFERENCE with 2 children where child[0] is " +
+ SleighParser.tokenNames[child0.getType()]);
+ });
+ return;
}
case 1:
match(tree, SleighParser.OP_DEREFERENCE, onOffset);