[binutils-gdb] gdb/dwarf: use true/false in read_gdb_index_from_buffer

Simon Marchi via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef35185c7ba1a5c44f54679cd2248af80f90b92f

commit ef35185c7ba1a5c44f54679cd2248af80f90b92f
Author: Simon Marchi <[email protected]>
Date:   Wed Mar 11 14:05:46 2026 -0400

    gdb/dwarf: use true/false in read_gdb_index_from_buffer
    
    Change-Id: I92ee061796705394c8b305599c10b2c9f953ac82
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/dwarf2/read-gdb-index.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c
index 06fea0ea751..ddbac684675 100644
--- a/gdb/dwarf2/read-gdb-index.c
+++ b/gdb/dwarf2/read-gdb-index.c
@@ -441,8 +441,9 @@ read_gdb_index_from_buffer (const char *filename,
 				  filename));
 	  warning_printed = 1;
 	}
-      return 0;
+      return false;
     }
+
   /* Version 7 indices generated by gold refer to the CU for a symbol instead
      of the TU (for symbols coming from TUs),
      http://sourceware.org/bugzilla/show_bug.cgi?id=15021.
@@ -454,7 +455,7 @@ read_gdb_index_from_buffer (const char *filename,
   /* Indexes with higher version than the one supported by GDB may be no
      longer backward compatible.  */
   if (version > 9)
-    return 0;
+    return false;
 
   map->version = version;
 
@@ -501,7 +502,7 @@ read_gdb_index_from_buffer (const char *filename,
 							symbol_table));
     }
 
-  return 1;
+  return true;
 }
 
 /* A helper for create_cus_from_gdb_index that handles a given list of
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.