2004-02-15 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 15 Feb 2004 15:16:29 +0000 (15:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 15 Feb 2004 15:16:29 +0000 (15:16 +0000)
* solib.c (solib_map_sections): Use bfd_set_cacheable instead of
poking .cacheable directly.
* symfile.c (symfile_bfd_open): Ditto.

gdb/ChangeLog
gdb/solib.c
gdb/symfile.c

index c71b4e906a9c4615663c1d4dc4afc83549662af5..d777cc36db8ba77ec11939550ff11eb7681c5804 100644 (file)
@@ -1,5 +1,9 @@
 2004-02-15  Andrew Cagney  <cagney@redhat.com>
 
+       * 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".
index baabf20651c5ab0e5b6f14373236b1395e5de756..80f834f1e0da8a349d2a50df259962c5e506446c 100644 (file)
@@ -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 */
index a44c3cc41e00591b141b909cb9c86f05d436c6e2..f1a5ecf30e2a1b5c4146d4c447dd597892beb9d7 100644 (file)
@@ -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))
     {
This page took 0.030782 seconds and 4 git commands to generate.