aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-21 14:35:01 -0700
committerTom Tromey <tom@tromey.com>2022-12-23 14:14:18 -0700
commit32e62cbcc11caedcc00b7551c153d8f1b25e075c (patch)
tree88dae7bcf22ca14b716044c606d39b48fb43e696
parent28f1a767db8ef94f54ee79a2f87b72615adf10dc (diff)
downloadgdb-32e62cbcc11caedcc00b7551c153d8f1b25e075c.zip
gdb-32e62cbcc11caedcc00b7551c153d8f1b25e075c.tar.gz
gdb-32e62cbcc11caedcc00b7551c153d8f1b25e075c.tar.bz2
Use bool for dwarf2_has_info
This changes dwarf2_has_info to return bool.
-rw-r--r--gdb/dwarf2/public.h6
-rw-r--r--gdb/dwarf2/read.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/gdb/dwarf2/public.h b/gdb/dwarf2/public.h
index a9d4682..4435272 100644
--- a/gdb/dwarf2/public.h
+++ b/gdb/dwarf2/public.h
@@ -20,9 +20,9 @@
#ifndef DWARF2_PUBLIC_H
#define DWARF2_PUBLIC_H
-extern int dwarf2_has_info (struct objfile *,
- const struct dwarf2_debug_sections *,
- bool = false);
+extern bool dwarf2_has_info (struct objfile *,
+ const struct dwarf2_debug_sections *,
+ bool = false);
/* A DWARF names index variant. */
enum class dw_index_kind
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index db67dfc..7bd12c1 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -1549,13 +1549,13 @@ dwarf2_per_objfile::set_symtab (const dwarf2_per_cu_data *per_cu,
interposition is possible and so symbol values must follow copy
relocation rules. */
-int
+bool
dwarf2_has_info (struct objfile *objfile,
const struct dwarf2_debug_sections *names,
bool can_copy)
{
if (objfile->flags & OBJF_READNEVER)
- return 0;
+ return false;
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);