Handle DW_OP_GNU_implicit_pointer in dwarf assembler
authorYao Qi <yao.qi@linaro.org>
Wed, 25 Jan 2017 16:24:44 +0000 (16:24 +0000)
committerYao Qi <yao.qi@linaro.org>
Wed, 25 Jan 2017 16:24:44 +0000 (16:24 +0000)
commit5ac95241162bf4729ecaf3c880cdaa846a3aded4
tree9b80e933c42503c214029adde4ca6b23fceb90ed
parenta1aa5e81de977805b16f2b1b9a12027a7f61c20c
Handle DW_OP_GNU_implicit_pointer in dwarf assembler

DW_OP_GNU_implicit_pointer refers to a DIE with an offset of different
sizes in different dwarf versions.  In v2, the size is the pointer size,
while in v3 and above, it is the ref_addr size.  This patch fixes
dwarf assembler to emit the correct size of offset.  We've already fixed
this size issue in gdb,
https://sourceware.org/ml/gdb-patches/2011-09/msg00451.html

gdb/testsuite:

2017-01-25  Yao Qi  <yao.qi@linaro.org>

* lib/dwarf.exp (Dwarf::_location): Handle
DW_OP_GNU_implicit_pointer with proper size.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/dwarf.exp
This page took 0.038373 seconds and 4 git commands to generate.