From cc9f0ed60fb9c6d6f6a22e048b74378b92d84cfb Mon Sep 17 00:00:00 2001 From: caheckman <48068198+caheckman@users.noreply.github.com> Date: Thu, 26 Feb 2026 17:57:29 +0000 Subject: [PATCH] GP-6466 Test if constant has an attached symbol to goto --- .../ghidra/app/decompiler/component/DecompilerPanel.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java index bb9c5eb729..c2e49b7b71 100644 --- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java +++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java @@ -895,6 +895,13 @@ public class DecompilerPanel extends JPanel implements FieldMouseListener, Field controller.goToAddress(vn.getAddress(), newWindow); } } + else if (highVar.getSymbol() != null) { + VariableStorage storage = highVar.getSymbol().getStorage(); + if (storage.isMemoryStorage()) { + controller.goToAddress(storage.getMinAddress(), newWindow); + } + return; // Don't goto if symbol is on the stack or in a register + } else if (vn.isConstant()) { controller.goToScalar(vn.getOffset(), newWindow); }