+2021-03-20  Tom Tromey  <tom@tromey.com>
+
+       * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
+       * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
+       bool.
+       * symfile-debug.c (debug_qf_has_symbols): Return bool.
+       * psymtab.c (psym_has_symbols): Return bool.
+       * objfiles.c (objfile::has_partial_symbols): Return bool.
+       * dwarf2/read.c (dw2_has_symbols): Return bool.
+
 2021-03-20  Tom Tromey  <tom@tromey.com>
 
        * symfile.c (read_symbols): Update.
 
     });
 }
 
-static int
+static bool
 dw2_has_symbols (struct objfile *objfile)
 {
-  return 1;
+  return true;
 }
 
 const struct quick_symbol_functions dwarf2_gdb_index_functions =
 
 \f
 /* See objfiles.h.  */
 
-int
+bool
 objfile::has_partial_symbols ()
 {
   if (!sf)
-    return 0;
+    return false;
 
   /* If we have not read psymbols, but we have a function capable of reading
      them, then that is an indication that they are in fact available.  Without
      not be present in this objfile.  */
   if ((flags & OBJF_PSYMTABS_READ) == 0
       && sf->sym_read_psymbols != NULL)
-    return 1;
+    return true;
 
   return sf->qf->has_symbols (this);
 }
 
 
   /* Return true if OBJFILE has partial symbols.  */
 
-  int has_partial_symbols ();
+  bool has_partial_symbols ();
 
   /* The object file's original name as specified by the user,
      made absolute, and tilde-expanded.  However, it is not canonicalized
 
 /* Psymtab version of has_symbols.  See its definition in
    the definition of quick_symbol_functions in symfile.h.  */
 
-static int
+static bool
 psym_has_symbols (struct objfile *objfile)
 {
   return objfile->partial_symtabs->psymtabs != NULL;
 
 \f
 /* Debugging version of struct quick_symbol_functions.  */
 
-static int
+static bool
 debug_qf_has_symbols (struct objfile *objfile)
 {
   const struct debug_sym_fns_data *debug_data
     = symfile_debug_objfile_data_key.get (objfile);
-  int retval;
+  bool retval;
 
   retval = debug_data->real_sf->qf->has_symbols (objfile);
 
 
 {
   /* Return true if this objfile has any "partial" symbols
      available.  */
-  int (*has_symbols) (struct objfile *objfile);
+  bool (*has_symbols) (struct objfile *objfile);
 
   /* Return the symbol table for the "last" file appearing in
      OBJFILE.  */