libdw: dwarf_get_units should handle existing failure to open Dwarf.
authorMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 18:14:58 +0000 (20:14 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 11 Jun 2018 06:35:51 +0000 (08:35 +0200)
commitb958e6b0fbe6aa246bbbbdec34487476b01d1f2e
tree020196aedd703f3ddc091c12610585531962ef05
parentb7a5bc8aa3421cca4d343ce7e5bca9a7a704a71e
libdw: dwarf_get_units should handle existing failure to open Dwarf.

The other dwarf unit/cu iterators handle a NULL Dwarf handle as an
existing error and return NULL. Don't crash.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_get_units.c