From 0e244900ba8bf33a294b8b6e5bd0e2519c229c85 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Thu, 30 May 2024 00:58:46 +0200 Subject: [PATCH] Do not increase address by byte_size on old dwarf Or so I hope. Signed-off-by: Juraj Oravec --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 53c50c2..7499100 100644 --- a/main.py +++ b/main.py @@ -221,7 +221,7 @@ class Bear(): self.truly_resolve_type(child_entry, typ_die) - if ('size_byte' in child_entry) and ('DW_AT_data_bit_offset' not in child_die.attributes): + if ('size_byte' in child_entry) and ('DW_AT_data_bit_offset' not in child_die.attributes) and ('DW_AT_bit_offset' not in child_die.attributes): child_offset = child_offset + child_entry['size_byte'] child_dies.append(child_entry)