From 3ca0ed52ed8af8612602b10081039f3f045b78d3 Mon Sep 17 00:00:00 2001 From: Behrang Fouladi Date: Thu, 20 Apr 2023 16:17:06 +0200 Subject: [PATCH] process all input varnodes of multiequal pcodeop --- .../Decompiler/ghidra_scripts/ShowConstantUse.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java b/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java index 3123a67e19..475f808298 100644 --- a/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java +++ b/Ghidra/Features/Decompiler/ghidra_scripts/ShowConstantUse.java @@ -867,12 +867,12 @@ public class ShowConstantUse extends GhidraScript { doneSet); return; case PcodeOp.MULTIEQUAL: - followToParam(constUse, defUseList, highFunction, def.getInput(0), funcList, - doneSet); - @SuppressWarnings("unchecked") - ArrayList splitUseList = (ArrayList) defUseList.clone(); - followToParam(constUse, splitUseList, highFunction, def.getInput(1), funcList, - doneSet); + for (int i = 0; i < def.getNumInputs(); i++) { + @SuppressWarnings("unchecked") + ArrayList splitUseList = (ArrayList) defUseList.clone(); + followToParam(constUse, splitUseList, highFunction, def.getInput(i), funcList, + doneSet); + } return; case PcodeOp.CAST: followToParam(constUse, defUseList, highFunction, def.getInput(0), funcList,