diff options
| author | Tom Tromey <tromey@adacore.com> | 2020-10-06 08:56:54 -0600 |
|---|---|---|
| committer | Tom Tromey <tromey@adacore.com> | 2020-10-09 11:18:52 -0600 |
| commit | 7c184d334adac03eb200b0f8b01edaf051bfc01b (patch) | |
| tree | 38ff6a0265cb9dbbd3683aa7d726bb92bc47e324 /gdb/frame.c | |
| parent | 5c4258f4c051a31d7209712ecd28830c55a92034 (diff) | |
| download | binutils-7c184d334adac03eb200b0f8b01edaf051bfc01b.zip binutils-7c184d334adac03eb200b0f8b01edaf051bfc01b.tar.gz binutils-7c184d334adac03eb200b0f8b01edaf051bfc01b.tar.bz2 | |
Fix bit offset regression
The type-safe attribute patch introduced a regression that can occur
when the DW_AT_bit_offset value is negative. This can happen with
some Ada programs.
This patch fixes the problem. It also fixes a minor oddity in the
existing scalar storage test -- this test was intended to assign a
smaller number of bits to the field.
2020-10-09 Tom Tromey <tromey@adacore.com>
* dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
gdb/testsuite/ChangeLog
2020-10-09 Tom Tromey <tromey@adacore.com>
* gdb.ada/scalar_storage/storage.adb (Another_Range): New type.
(Rec): Add field. Fix range.
* gdb.ada/scalar_storage.exp: Update.
Diffstat (limited to 'gdb/frame.c')
0 files changed, 0 insertions, 0 deletions
