X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libctf%2Fctf-open-bfd.c;h=24c04038ad11c17259941fa9e9e56d659b1320b2;hb=1b59ca1cf1905a2c0d0b7e2e5ca8145bc0b39385;hp=6fbbde88529b333fe2abe01602d9795893a126b7;hpb=6d5944fca682fe97f37e537f78b665ada2400f51;p=deliverable%2Fbinutils-gdb.git diff --git a/libctf/ctf-open-bfd.c b/libctf/ctf-open-bfd.c index 6fbbde8852..24c04038ad 100644 --- a/libctf/ctf-open-bfd.c +++ b/libctf/ctf-open-bfd.c @@ -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)) {