From: Simon Marchi Date: Mon, 17 Feb 2025 19:46:56 +0000 (-0500) Subject: gdb/dwarf: make maybe_queue_comp_unit return bool X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db20cb1197cc7c5e94a26aac370267ac69f18ab5;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf: make maybe_queue_comp_unit return bool Change-Id: I9a6bf27b72f7efb1cc4cea5345db14969e794bdb --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 9f62d0cb225..347d71ddf26 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -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;