Ghidra is a software reverse engineering (SRE) framework
GP-6466 Test if constant has an attached symbol to goto
caheckmancc9f0ed60fb9
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.javaindex 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, Fieldcontroller.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);}