From 54cd023fc9dbbf716366068cc51ed18142fb5b46 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:37:43 +0000 Subject: [PATCH] GP-5119: get_register_by_index can fail --- .../Debugger-agent-dbgeng/src/main/py/src/ghidradbg/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/commands.py b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/commands.py index bbcdd23172..b1e52de754 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/commands.py +++ b/Ghidra/Debug/Debugger-agent-dbgeng/src/main/py/src/ghidradbg/commands.py @@ -591,8 +591,8 @@ def putreg(): regs = util.dbg._base.reg for i in range(0, len(regs)): name = regs._reg.GetDescription(i)[0] - value = regs._get_register_by_index(i) try: + value = regs._get_register_by_index(i) values.append(mapper.map_value(nproc, name, value)) robj.set_value(name, hex(value)) except Exception: