Ghidra is a software reverse engineering (SRE) framework
GP-0: Fix issue in gdb/hooks.py when brk.commands is None.
Dan12d94897d706
diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.pyindex beffc33f0d..2e7de190cf 100644--- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py+++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py@@ -311,7 +311,7 @@ def check_for_continue(event):if HOOK_STATE.in_break_w_cont:return Truefor brk in event.breakpoints:- if hasattr(brk, 'commands'):+ if hasattr(brk, 'commands') and brk.commands is not None:for cmd in brk.commands:if cmd == 'c' or cmd.startswith('cont'):HOOK_STATE.in_break_w_cont = True