From 549c1eea94a2bf31384bd2921b056edf1300b679 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 15 Feb 2004 15:16:29 +0000 Subject: [PATCH] 2004-02-15 Andrew Cagney * solib.c (solib_map_sections): Use bfd_set_cacheable instead of poking .cacheable directly. * symfile.c (symfile_bfd_open): Ditto. --- gdb/ChangeLog | 4 ++++ gdb/solib.c | 2 +- gdb/symfile.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c71b4e906a9..d777cc36db8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-02-15 Andrew Cagney + * solib.c (solib_map_sections): Use bfd_set_cacheable instead of + poking .cacheable directly. + * symfile.c (symfile_bfd_open): Ditto. + * Makefile.in: Update all dependencies. * Makefile.in: (.SUFFIXES): Add ".l" and ".y". diff --git a/gdb/solib.c b/gdb/solib.c index baabf20651c..80f834f1e0d 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -250,7 +250,7 @@ solib_map_sections (void *arg) /* Leave bfd open, core_xfer_memory and "info files" need it. */ so->abfd = abfd; - abfd->cacheable = 1; + bfd_set_cacheable (abfd, 1); /* copy full path name into so_name, so that later symbol_file_add can find it */ diff --git a/gdb/symfile.c b/gdb/symfile.c index a44c3cc41e0..f1a5ecf30e2 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1251,7 +1251,7 @@ symfile_bfd_open (char *name) error ("\"%s\": can't open to read symbols: %s.", name, bfd_errmsg (bfd_get_error ())); } - sym_bfd->cacheable = 1; + bfd_set_cacheable (sym_bfd, 1); if (!bfd_check_format (sym_bfd, bfd_object)) { -- 2.30.2