switch inferior/thread before calling target methods
[deliverable/binutils-gdb.git] / libctf / ctf-open-bfd.c
index 6fbbde88529b333fe2abe01602d9795893a126b7..24c04038ad11c17259941fa9e9e56d659b1320b2 100644 (file)
@@ -1,5 +1,5 @@
 /* Opening CTF files with BFD.
-   Copyright (C) 2019 Free Software Foundation, Inc.
+   Copyright (C) 2019-2020 Free Software Foundation, Inc.
 
    This file is part of libctf.
 
@@ -66,7 +66,7 @@ ctf_new_archive_internal (int is_archive, struct ctf_archive *arc,
   return arci;
 }
 
-/* Free the BFD bits of a CTF file on ctf_file_close().  */
+/* Free the BFD bits of a CTF file on ctf_arc_close().  */
 
 static void
 ctf_bfdclose (struct ctf_archive_internal *arci)
@@ -312,6 +312,7 @@ ctf_fdopen (int fd, const char *filename, const char *target, int *errp)
                   bfd_errmsg (bfd_get_error()));
       return (ctf_set_open_errno (errp, ECTF_FMT));
     }
+  bfd_set_cacheable (abfd, 1);
 
   if (!bfd_check_format (abfd, bfd_object))
     {
This page took 0.024893 seconds and 4 git commands to generate.