binutils-gdb/gdb/dwarf2
Tom Tromey 7c184d334a 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.
2020-10-09 11:18:52 -06:00
..
abbrev.c
abbrev.h
attribute.c Add attribute::as_boolean method 2020-09-29 20:29:07 -06:00
attribute.h Remove DW_UNSND 2020-09-29 20:29:07 -06:00
comp-unit.c
comp-unit.h
die.h Change die_info methods to check the attribute's form 2020-09-29 20:29:07 -06:00
dwz.c
dwz.h
expr.c
expr.h
frame-tailcall.c
frame-tailcall.h
frame.c
frame.h
index-cache.c
index-cache.h
index-common.c
index-common.h
index-write.c
index-write.h
leb.c
leb.h
line-header.c
line-header.h
loc.c
loc.h
macro.c DWARFv5: Handle DW_MACRO_define_strx and DW_MACRO_undef_strx macro entries. 2020-10-02 12:27:45 +05:30
macro.h DWARFv5: Handle DW_MACRO_define_strx and DW_MACRO_undef_strx macro entries. 2020-10-02 12:27:45 +05:30
read.c Fix bit offset regression 2020-10-09 11:18:52 -06:00
read.h
section.c
section.h
stringify.c
stringify.h