Fix DWARF disassembly of DW_OP_const_type
authorTom Tromey <tromey@adacore.com>
Fri, 3 Apr 2020 15:11:55 +0000 (09:11 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 3 Apr 2020 15:15:41 +0000 (09:15 -0600)
commitd9e49b61691f384447242f54c996fe80ef9bf184
treefb153a956ccb31fea078e280d952360fdd73ae38
parent492c3f03c701c911c9873eb4dd757fdb5fb13fd8
Fix DWARF disassembly of DW_OP_const_type

While debugging another issue, I noticed that disassembling a DWARF
expression using DW_OP_const_type did not work.
disassemble_dwarf_expression was not properly decoding this operation.

This patch fixes the problem.  Tested by re-debugging gdb.

I didn't write a test case because that seemed like overkill for
what's essentially a maintainer's helper.

The expression evaluator does decode this properly, so no other change
was needed.

gdb/ChangeLog
2020-04-03  Tom Tromey  <tromey@adacore.com>

* dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
Read constant block.
gdb/ChangeLog
gdb/dwarf2/loc.c
This page took 0.025038 seconds and 4 git commands to generate.