]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: make maybe_queue_comp_unit return bool
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Feb 2025 19:46:56 +0000 (14:46 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Feb 2025 19:57:06 +0000 (14:57 -0500)
Change-Id: I9a6bf27b72f7efb1cc4cea5345db14969e794bdb

gdb/dwarf2/read.c

index 9f62d0cb2259c74dfa38b0383b1ca63199c23080..347d71ddf262bb87f0a23bb577b2aba2c10c33d8 100644 (file)
@@ -4688,7 +4688,7 @@ queue_comp_unit (dwarf2_per_cu_data *per_cu,
    indicator of whether the CU's DIEs are loaded right now, it should check
    that by calling `dwarf2_per_objfile::get_cu` instead.  */
 
-static int
+static bool
 maybe_queue_comp_unit (struct dwarf2_cu *dependent_cu,
                       dwarf2_per_cu_data *per_cu,
                       dwarf2_per_objfile *per_objfile,
@@ -4711,7 +4711,7 @@ maybe_queue_comp_unit (struct dwarf2_cu *dependent_cu,
       gdb_assert (!per_objfile->symtab_set_p (per_cu));
 
       /* The DIEs are already loaded, the caller doesn't need to do it.  */
-      return 0;
+      return false;
     }
 
   bool queued = false;