Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-5089: Fix section refresh for modules containing spaces.

Danf02c7c8b6322
diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py
index 7d34d33edb..0e9ded615c 100644
--- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py
+++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py
@@ -388,7 +388,7 @@ def refresh_sections(node: sch.Schema('Module')):
switch_inferior(find_inf_by_mod_obj(node))
with commands.open_tracked_tx('Refresh Module and Sections'):
modname = find_module_name_by_mod_obj(node)
- gdb.execute(f'ghidra trace put-sections {modname}')
+ gdb.execute(f'ghidra trace put-sections "{modname}"')
@REGISTRY.method(action='activate')