]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use correct sign extension for enumeration types
authorTom Tromey <tromey@adacore.com>
Thu, 20 Mar 2025 15:52:08 +0000 (09:52 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 24 Apr 2025 19:25:08 +0000 (13:25 -0600)
commit5363deffcfb1c1825db3a8446d377a0ad56eff70
tree1f31f7c17cac9e0d1d041c02b4ac6c30105ef9ac
parentc2de2f7ed5904c1f8fdca596536616f71c5d2521
Use correct sign extension for enumeration types

This changes update_enumeration_type_from_children to use the correct
sign-extension method on the attribute.  The logic here is a bit
complicated: if the enum has an underlying type, then we use that
type's signed-ness to interpret attributes; otherwise we must assume
attributes are encoded as signed values.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32680
gdb/dwarf2/read.c