Tidy reading data in read_formatted_entries
authorAlan Modra <amodra@gmail.com>
Tue, 26 Sep 2017 13:50:06 +0000 (23:20 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 26 Sep 2017 13:53:44 +0000 (23:23 +0930)
commit33e0a9a056bd23e923b929a4f2ab049ade0b1c32
tree2deb090c0367890c4b799c0e1a7ab086b312eb86
parent30d0157a2ad64e64e5ff9fcc0dbe78a3e682f573
Tidy reading data in read_formatted_entries

Using read_attribute_value accomplishes two things: It checks for
unexpected formats, and ensures the buffer pointer always increments.

PR 22210
* dwarf2.c (read_formatted_entries): Use read_attribute_value to
read data.
bfd/ChangeLog
bfd/dwarf2.c