commit | 48d0ac705c45cb588a8e6d19ee911bc225c897cf | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Fri Apr 25 08:13:36 2025 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Tue Apr 29 11:34:49 2025 -0600 |
tree | 2916bf012082517567d779b19488042893825a91 | |
parent | a7175864d96765b291276cf3a6508b78ad3a9b23 [diff] |
Handle base type without DW_AT_byte_size DWARF says that a base type can have DW_AT_bit_size, without DW_AT_byte_size. However, gdb does not correctly handle this; in fact, it crashes, as pointed out in this LLVM merge request: https://github.com/llvm/llvm-project/pull/137123 This patch reworks the base type size logic a bit to handle this situation. Tested-by: Kevin Buettner <kevinb@redhat.com> Approved-by: Kevin Buettner <kevinb@redhat.com>