Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-1 fixed another mistake in the open/close variables action

ghidragon48f2a034694d
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeViewerProvider.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeViewerProvider.java
index 0bce2b4696..060342400a 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeViewerProvider.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/CodeViewerProvider.java
@@ -509,7 +509,7 @@ public class CodeViewerProvider extends NavigatableComponentProviderAdapter
private void toggleShowVariables(Address address) {
ListingModel model = listingPanel.getListingModel();
boolean open = model.areFunctionVariablesOpen(address);
- model.setAllFunctionVariablesOpen(!open);
+ model.setFunctionVariablesOpen(address, !open);
setLocation(new VariablesOpenCloseLocation(program, address));
}