* 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 c5430d1..a200927 100644 (file)
@@ -1,5 +1,9 @@
 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.
        (gdb_bfd_cache): New global.
        (struct gdb_bfd_cache_search): New.
index 6667c05..023447f 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);