Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: drgn test failures revisited

d-millarc4c88e71bead
diff --git a/Ghidra/Debug/Debugger-agent-drgn/src/main/py/src/ghidradrgn/commands.py b/Ghidra/Debug/Debugger-agent-drgn/src/main/py/src/ghidradrgn/commands.py
index a5d31fbb54..812840c48b 100644
--- a/Ghidra/Debug/Debugger-agent-drgn/src/main/py/src/ghidradrgn/commands.py
+++ b/Ghidra/Debug/Debugger-agent-drgn/src/main/py/src/ghidradrgn/commands.py
@@ -1314,8 +1314,9 @@ def ghidra_trace_put_all():
STATE.require_tx()
with STATE.client.batch() as b:
put_environment()
- put_regions()
- put_modules()
+ if hasattr(drgn, 'RelocatableModule'):
+ put_regions()
+ put_modules()
syms = SYMBOLS_PATTERN.format(procnum=util.selected_process())
sobj = STATE.trace.create_object(syms)
sobj.insert()