mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-23 03:11:23 +08:00
GP-6466 Test if constant has an attached symbol to goto
This commit is contained in:
+7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user