Skip to content

Commit

Permalink
Fix an incorrect scoped function call (introduced in #1093) (#1124)
Browse files Browse the repository at this point in the history
```
Python Exception <class 'NameError'>: name 'add_context_layout_mapping' is not defined
Error occurred in Python: name 'add_context_layout_mapping' is not defined
```
  • Loading branch information
mahaloz authored Jul 21, 2024
1 parent 6ddd780 commit d8c7723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -9974,7 +9974,7 @@ def add_context_pane(self, pane_name: str, display_pane_function: Callable, pane
corrected_settings_name: str = pane_name.replace(" ", "_")
gef.config["context.layout"] += f" {corrected_settings_name}"

add_context_layout_mapping(corrected_settings_name, display_pane_function, pane_title_function, condition)
self.add_context_layout_mapping(corrected_settings_name, display_pane_function, pane_title_function, condition)

def load(self) -> None:
"""Load all the commands and functions defined by GEF into GDB."""
Expand Down

0 comments on commit d8c7723

Please sign in to comment.