Make sure dw_at2name() never returns NULL. This call is used in various
authorclaudio <claudio@openbsd.org>
Wed, 21 Feb 2024 13:16:14 +0000 (13:16 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 21 Feb 2024 13:16:14 +0000 (13:16 +0000)
commit283ced89295eb8dc056ac371250a6c974c74a688
treec30162dff253350e609b3a0121fb8e37c55735f2
parentd3c630ad8fc24020ace8ca27e779ba7ba7f837e3
Make sure dw_at2name() never returns NULL. This call is used in various
printf calls that clang decided to optimise into puts calls that crash
with a NULL argument.
Also add DW_AT_noreturn which caused this when running ./ctfconv -d ./ctfconv
OK mpi@
usr.bin/ctfconv/dw.c
usr.bin/ctfconv/dwarf.h