From 858db2f8df01fda89711d4a222712b6cfbe0218a Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:40:29 +0000 Subject: [PATCH] GP-4856: fix for missing attributes --- .../src/main/py/src/ghidradbg/commands.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 9406650dab..bbcdd23172 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 @@ -1413,14 +1413,14 @@ def update_by_container(np, keyval, obj): if np.endswith("Frames"): mo = util.get_object(obj.path) map = util.get_attributes(mo) - attr = map["Attributes"] - if attr is None: - return - map = util.get_attributes(attr) - pc = util.get_value(map["InstructionOffset"]) - (pc_base, pc_addr) = map_address(pc) - obj.set_value('Instruction Offset', pc_addr) - key = '#{:x} 0x{:x}'.format(index, pc) + if 'Attributes' in map: + attr = map["Attributes"] + if attr is not None: + map = util.get_attributes(attr) + pc = util.get_value(map["InstructionOffset"]) + (pc_base, pc_addr) = map_address(pc) + obj.set_value('Instruction Offset', pc_addr) + key = '#{:x} 0x{:x}'.format(index, pc) if np.endswith("Modules"): create_generic(obj.path) mo = util.get_object(obj.path)