]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle dynamic DW_AT_bit_size
authorTom Tromey <tromey@adacore.com>
Tue, 14 Oct 2025 19:26:30 +0000 (13:26 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 24 Oct 2025 17:52:18 +0000 (11:52 -0600)
commit157da75362cc082f8f8067155d137dfe98ac230c
treeb7c0140d75e28364b0314e2c929aa44268352380
parent1e3c445f54d98eca54223eb309c92c1d4208e17a
Handle dynamic DW_AT_bit_size

gnat-llvm will sometimes emit a structure that that uses
DW_AT_bit_size with an expression to compute the bit size of a record.
I believe this is a DWARF extension.  This patch implements support
for this in gdb.

Reviewed-By: Keith Seitz <keiths@redhat.com>
gdb/dwarf2/read.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/testsuite/gdb.dwarf2/dynamic-bit-size.exp [new file with mode: 0644]