* dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
authorTom Tromey <tromey@redhat.com>
Wed, 18 Jul 2012 19:53:05 +0000 (19:53 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 18 Jul 2012 19:53:05 +0000 (19:53 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index c5430d131e6b141e977c730f712de2a81e270c7d..a200927a62ec3d77ea9606094cbcd00a6921e796 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
+
 2012-07-18  Tom Tromey  <tromey@redhat.com>
 
        * gdb_bfd.c (struct gdb_bfd_data): New.
index 6667c05970810df0b3f4a4d519c540ad3def4cc7..023447f78ef4d3fda13866ad82944ed0797262e5 100644 (file)
@@ -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);