PR29872, uninitialised value in display_debug_lines_decoded dwarf.c:5413
authorAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2022 05:20:42 +0000 (15:50 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 12 Dec 2022 08:55:19 +0000 (19:25 +1030)
commitb1f1cefd5844cb0ce10df78c6e1a8ed2e98faa77
tree81d5ebaa1846749573f6a429738d63d77fe1eb6e
parentaf327b04a5560163713222ebcc94f587441be127
PR29872, uninitialised value in display_debug_lines_decoded dwarf.c:5413

Plus segvs if the C-library doesn't handle printf %s of NULL.

PR 29872
* dwarf.c (null_name): New function.
(process_debug_info): Use it here..
(display_debug_lines_raw): ..and here..
(display_debug_lines_decoded): ..and here.  xcalloc directory_table.
Simplify xcalloc of file_table.
binutils/dwarf.c