gdb: Better support for dynamic properties with negative values
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 1 Mar 2019 11:06:23 +0000 (11:06 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Jul 2019 11:09:55 +0000 (12:09 +0100)
commit0d4e84ed37c404eb7e691ee9d68ae2ec758d8f66
tree8ac7687c3d05c9b0fcbfbcee2b87617ee21eb42f
parent9a49df9d4bfc7ff03fed751e12b1bc32fbee4fb2
gdb: Better support for dynamic properties with negative values

When the type of a property is smaller than the CORE_ADDR in which the
property value has been placed, and if the property is signed, then
sign extend the property value from its actual type up to the size of
CORE_ADDR.

gdb/ChangeLog:

* dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
value if its desired type is smaller than a CORE_ADDR and signed.

gdb/testsuite/ChangeLog:

* gdb.fortran/vla-ptype.exp: Print array with negative bounds.
* gdb.fortran/vla-sizeof.exp: Print the size of an array with
negative bounds.
* gdb.fortran/vla-value.exp: Print elements of an array with
negative bounds.
* gdb.fortran/vla.f90: Setup an array with negative bounds for
testing.
gdb/ChangeLog
gdb/dwarf2loc.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/vla-ptype.exp
gdb/testsuite/gdb.fortran/vla-sizeof.exp
gdb/testsuite/gdb.fortran/vla-value.exp
gdb/testsuite/gdb.fortran/vla.f90
This page took 0.028863 seconds and 4 git commands to generate.