]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Change coffread.c:pe_file to bool
authorTom Tromey <tromey@adacore.com>
Fri, 16 Jan 2026 18:07:05 +0000 (11:07 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 20 Jan 2026 15:47:09 +0000 (08:47 -0700)
This changes coffread.c:pe_file to use bool.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/coffread.c

index cc4bb3e90491fec3fc1feced0cd4b1d793afab13..a6ec9473df177a5066874ef4777d105bc1376dae 100644 (file)
@@ -64,7 +64,7 @@ static unsigned local_auxesz;
 
 /* This is set if this is a PE format file.  */
 
-static int pe_file;
+static bool pe_file;
 
 /* Simplified internal version of coff symbol table information.  */
 
@@ -323,9 +323,8 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
      from the section address, rather than as absolute addresses.
      FIXME: We should use BFD to read the symbol table, and thus avoid
      this problem.  */
-  pe_file =
-    startswith (bfd_get_target (objfile->obfd.get ()), "pe")
-    || startswith (bfd_get_target (objfile->obfd.get ()), "epoc-pe");
+  pe_file = (startswith (bfd_get_target (objfile->obfd.get ()), "pe")
+            || startswith (bfd_get_target (objfile->obfd.get ()), "epoc-pe"));
 
   /* End of warning.  */