Make some DWARF complaints clearer
authorTom Tromey <tromey@adacore.com>
Wed, 22 May 2019 13:08:49 +0000 (09:08 -0400)
committerTom Tromey <tromey@adacore.com>
Wed, 29 May 2019 15:57:47 +0000 (09:57 -0600)
commitfa9c3fa035433debc24503e32c59688650ffcdbb
tree748962869050a8b22eac312e0c23f8d19c79067c
parent4330d61dfb05d77fd925efdca45091f12e3a6266
Make some DWARF complaints clearer

I noticed that the complaint in partial_die_parent_scope was not using
dwarf_tag_name, so I changed that.  Then I noticed that dwarf_tag_name
does not show the numeric value for an unrecognized tag, so I changed
that function and all the related functions to do so.

gdb/ChangeLog
2019-05-29  Tom Tromey  <tromey@adacore.com>

* dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
(dwarf_unknown): New function.
(dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
(dwarf_type_encoding_name): Use dwarf_unknown.
gdb/ChangeLog
gdb/dwarf2read.c