Do not increase address by byte_size on old dwarf

Or so I hope.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-05-30 00:58:46 +02:00
parent a98cf4a99a
commit 0e244900ba
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -221,7 +221,7 @@ class Bear():
self.truly_resolve_type(child_entry, typ_die) 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_offset = child_offset + child_entry['size_byte']
child_dies.append(child_entry) child_dies.append(child_entry)