aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-02-17 14:46:56 -0500
committerSimon Marchi <simon.marchi@efficios.com>2025-02-17 14:57:06 -0500
commitdb20cb1197cc7c5e94a26aac370267ac69f18ab5 (patch)
tree7c1b0160bf6e42b403ebe7a8489337e7778d7217 /gdb
parent9cf88ff5ad3785885337d94059de2567922b804f (diff)
downloadbinutils-db20cb1197cc7c5e94a26aac370267ac69f18ab5.zip
binutils-db20cb1197cc7c5e94a26aac370267ac69f18ab5.tar.gz
binutils-db20cb1197cc7c5e94a26aac370267ac69f18ab5.tar.bz2
gdb/dwarf: make maybe_queue_comp_unit return bool
Change-Id: I9a6bf27b72f7efb1cc4cea5345db14969e794bdb
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 9f62d0c..347d71d 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;