diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:53:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:53:05 +0000 |
commit | bb39779773bd297e43c409d2643e787aaeb6c3e1 (patch) | |
tree | a7a450c3cfd2c4292fbc755d2d7e491742ddd381 /gdb | |
parent | 6ec53d052b63163944019f5e17d73fafb9c57c2d (diff) | |
download | gdb-bb39779773bd297e43c409d2643e787aaeb6c3e1.zip gdb-bb39779773bd297e43c409d2643e787aaeb6c3e1.tar.gz gdb-bb39779773bd297e43c409d2643e787aaeb6c3e1.tar.bz2 |
* dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5430d1..a200927 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6667c05..023447f 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); |