[gdb/testsuite] Add untested case in selftest_setup
[deliverable/binutils-gdb.git] / bfd / coff-bfd.c
index 54ddd465cbf9f73e80e9dbd8677bb25c0c8585e1..8af084ef293d2142ae0d9b484a50a1295ca82667 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD COFF interfaces used outside of BFD.
 /* BFD COFF interfaces used outside of BFD.
-   Copyright (C) 1990-2018 Free Software Foundation, Inc.
+   Copyright (C) 1990-2021 Free Software Foundation, Inc.
    Written by Cygnus Support.
 
    This file is part of BFD, the Binary File Descriptor library.
    Written by Cygnus Support.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -27,7 +27,7 @@
 
 /* Return the COFF syment for a symbol.  */
 
 
 /* Return the COFF syment for a symbol.  */
 
-bfd_boolean
+bool
 bfd_coff_get_syment (bfd *abfd,
                     asymbol *symbol,
                     struct internal_syment *psyment)
 bfd_coff_get_syment (bfd *abfd,
                     asymbol *symbol,
                     struct internal_syment *psyment)
@@ -39,7 +39,7 @@ bfd_coff_get_syment (bfd *abfd,
       || ! csym->native->is_sym)
     {
       bfd_set_error (bfd_error_invalid_operation);
       || ! csym->native->is_sym)
     {
       bfd_set_error (bfd_error_invalid_operation);
-      return FALSE;
+      return false;
     }
 
   *psyment = csym->native->u.syment;
     }
 
   *psyment = csym->native->u.syment;
@@ -50,12 +50,12 @@ bfd_coff_get_syment (bfd *abfd,
 
   /* FIXME: We should handle fix_line here.  */
 
 
   /* FIXME: We should handle fix_line here.  */
 
-  return TRUE;
+  return true;
 }
 
 /* Return the COFF auxent for a symbol.  */
 
 }
 
 /* Return the COFF auxent for a symbol.  */
 
-bfd_boolean
+bool
 bfd_coff_get_auxent (bfd *abfd,
                     asymbol *symbol,
                     int indx,
 bfd_coff_get_auxent (bfd *abfd,
                     asymbol *symbol,
                     int indx,
@@ -72,7 +72,7 @@ bfd_coff_get_auxent (bfd *abfd,
       || indx >= csym->native->u.syment.n_numaux)
     {
       bfd_set_error (bfd_error_invalid_operation);
       || indx >= csym->native->u.syment.n_numaux)
     {
       bfd_set_error (bfd_error_invalid_operation);
-      return FALSE;
+      return false;
     }
 
   ent = csym->native + indx + 1;
     }
 
   ent = csym->native + indx + 1;
@@ -95,5 +95,5 @@ bfd_coff_get_auxent (bfd *abfd,
       ((combined_entry_type *) pauxent->x_csect.x_scnlen.p
        - obj_raw_syments (abfd));
 
       ((combined_entry_type *) pauxent->x_csect.x_scnlen.p
        - obj_raw_syments (abfd));
 
-  return TRUE;
+  return true;
 }
 }
This page took 0.0343 seconds and 4 git commands to generate.