aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-12-14 17:38:09 +0100
committerMark Wielaard <mark@klomp.org>2020-12-14 20:16:33 +0100
commiteab9267c330046846aa15217da7dcb77f4588220 (patch)
tree3c252fc5da9996df24b5a7e3289b3164029f528a /gdb/cli/cli-script.c
parent2f4132646d8dbf8c1a82d63cacbb36ee46a289bb (diff)
downloadbinutils-eab9267c330046846aa15217da7dcb77f4588220.zip
binutils-eab9267c330046846aa15217da7dcb77f4588220.tar.gz
binutils-eab9267c330046846aa15217da7dcb77f4588220.tar.bz2
Use DW_FORM_exprloc in testsuite Dwarf Assembler for DWARF version 4+.
Since DWARF version 4 expressions are represented by DW_FORM_exprloc instead of a block form. Support this in the testsuite Dwarf Assembler by setting the SPECIAL_expr form once we know the CU version. This doesn't change any testsuite results, it just makes the produced DWARF valid. gdb also accepts expressions in block form for DWARF version 4 and above, but this is technically incorrect. gdb/testsuite/ChangeLog: * lib/dwarf.exp (Dwarf::_read_constants): Don't set _constants(SPECIAL_expr) here, but set it... (Dwarf::cu): ...here based on _cu_version.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions