From bb39779773bd297e43c409d2643e787aaeb6c3e1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Jul 2012 19:53:05 +0000 Subject: [PATCH] * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5430d131e6..a200927a62e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-07-18 Tom Tromey + + * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open. + 2012-07-18 Tom Tromey * gdb_bfd.c (struct gdb_bfd_data): New. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6667c059708..023447f78ef 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -8115,7 +8115,7 @@ try_open_dwo_file (const char *file_name) if (desc < 0) return NULL; - sym_bfd = gdb_bfd_ref (bfd_fopen (absolute_name, gnutarget, FOPEN_RB, desc)); + sym_bfd = gdb_bfd_open (absolute_name, gnutarget, desc); if (!sym_bfd) { xfree (absolute_name); -- 2.30.2