]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Fix regression in variant part handling
authorTom Tromey <tromey@adacore.com>
Wed, 30 Sep 2020 15:46:36 +0000 (09:46 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 30 Sep 2020 15:51:44 +0000 (09:51 -0600)
commitcae21f8ebf01e379150bcf602a9ffb1f7c95b59e
tree9ea234f7d032d42bf096f882907e48c63e31005d
parent77718e5b7d3a7755fe8407a7fcb34fc0e684e7a6
Fix regression in variant part handling

My series to change DWARF attribute handling to be type-safe
introduced a regression in gdb.ada/variant.exp.  handle_variant was
using as_unsigned on an attribute with DW_FORM_sdata.  This patch
changes it to use constant_value instead.

2020-09-30  Tom Tromey  <tromey@adacore.com>

* dwarf2/read.c (handle_variant): Use constant_value.
gdb/ChangeLog
gdb/dwarf2/read.c