aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-11-22 10:54:58 +0100
committerTom de Vries <tdevries@suse.de>2020-11-22 10:54:58 +0100
commit117c628d49309e3b6a8b11d492f497104f3e4b2c (patch)
tree4194be44158a6297599ed05d2350b87e70ac6ad8 /libctf
parent60b43650988db65e5d4ffc6053d6e37444e3752e (diff)
downloadgdb-117c628d49309e3b6a8b11d492f497104f3e4b2c.zip
gdb-117c628d49309e3b6a8b11d492f497104f3e4b2c.tar.gz
gdb-117c628d49309e3b6a8b11d492f497104f3e4b2c.tar.bz2
[gdb/testsuite] Add testcase for DW_AT_count referencing a variable
Clang describes the upper bounds of variable length arrays using a DW_AT_count attribute which references the DIE of a synthetic variable whose value is specified using a DW_AT_location. GDB handles these incorrectly if the corresponding DWARF expression finishes with a DW_OP_stack_value (PR26905). This commit adds a new kfailed test to gdb.dwarf2/count.exp with the same DWARF as that generated by Clang for gdb.base/vla-optimized-out.exp, one of the failing tests. Checked on Fedora 32 x86_64, with GCC and Clang. gdb/testsuite/ChangeLog: 2020-11-22 Gary Benson <gbenson@redhat.com> PR gdb/26905 * gdb.dwarf2/count.exp: Add test for an array whose upper bound is defined using a DW_AT_count which references another DIE.
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions