Don't process DWARF generated from non-C/C++ code.
authormarkj <markj@FreeBSD.org>
Sat, 9 Jun 2018 15:10:49 +0000 (15:10 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 9 Jun 2018 15:10:49 +0000 (15:10 +0000)
commit2d52ea0b9e8e76be3059cd755f0c781685cbc5b5
tree7eb63e1e9bb21fdd76bcefabb933103677897380
parent9d10fab6bd890925b3011035448a3abe4741761c
Don't process DWARF generated from non-C/C++ code.

ctfconvert(1) is not designed to handle DWARF generated from such code,
and will generally fail in non-obvious ways.  Use an explicit check to
help catch such potential failures.

Reported by: Johannes Lundberg <johalun0@gmail.com>
MFC after: 2 weeks
cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c