diff options
author | Tom Tromey <tromey@adacore.com> | 2021-03-31 09:17:23 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-03-31 09:17:23 -0600 |
commit | 3f49d080599421880799fa091b47160e3c587e5b (patch) | |
tree | f8bde6cf168011f020d83ac9ec8d9ee57b57eaea /gdb/arc-tdep.h | |
parent | cfcbd506fb0262070f58d089bf58502d8f677dd5 (diff) | |
download | binutils-3f49d080599421880799fa091b47160e3c587e5b.zip binutils-3f49d080599421880799fa091b47160e3c587e5b.tar.gz binutils-3f49d080599421880799fa091b47160e3c587e5b.tar.bz2 |
Add some error checking to DWARF assembler
I had written a DWARF location expression like
DW_OP_const1u
DW_OP_stack_value
... and was surprised to see that the DW_OP_stack_value didn't appear
in the "readelf" output.
The problem here is that DW_OP_const1u requires an operand, but
neither the DWARF assembler nor gas diagnosed this problem.
This patch adds some checking to Dwarf::_location to try to avoid this
in the future. The checking is done via a helper proc that also
dissects the argument list and sets an array in the caller's frame.
gdb/testsuite/ChangeLog
2021-03-31 Tom Tromey <tromey@adacore.com>
* lib/dwarf.exp (Dwarf::_get_args): New proc.
(Dwarf::_location): Use it.
Diffstat (limited to 'gdb/arc-tdep.h')
0 files changed, 0 insertions, 0 deletions