change gdb to use BFD's "dwz" functions
authorTom Tromey <tromey@redhat.com>
Mon, 1 Jul 2013 19:55:17 +0000 (19:55 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 1 Jul 2013 19:55:17 +0000 (19:55 +0000)
commit4db1a1dc03bd31b37724d9a6c07f1ee9fc4683f8
tree3c90d755d9ea4c20c027ea916ce62395fd001a39
parentdd9aa0484e0b935fcf90d12337779e56a31f9352
change gdb to use BFD's "dwz" functions

BFD recently got a few functions related to "dwz" files.  This patch
changes gdb to use them, just to share a bit more code.

This changes dwarf2_get_dwz_file to possibly return NULL.  This
simplified a bit of code elsewhere.

Built and regtested on x86-64 Fedora 18.  I specifically regtested it
using my pending dwz test case.

* dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
.gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
(dwarf2_read_index, create_all_comp_units): Update.
gdb/ChangeLog
gdb/dwarf2read.c