[binutils-gdb] gdb/dwarf: change need_gnat_info to return bool
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=1a2cadc30eab01b5e7a8fcc05d42632f536a244a commit 1a2cadc30eab01b5e7a8fcc05d42632f536a244a Author: Simon Marchi <[email protected]> Date: Wed Mar 11 14:05:29 2026 -0400 gdb/dwarf: change need_gnat_info to return bool Change-Id: I0bc5930cc3b30986682d50f5eaad39fb74b2db8e Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/dwarf2/read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 155e5d94dbc..57945a24fb1 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -755,7 +755,7 @@ static struct type *read_subrange_index_type (struct die_info *die, static struct type *die_type (struct die_info *, struct dwarf2_cu *); -static int need_gnat_info (struct dwarf2_cu *); +static bool need_gnat_info (struct dwarf2_cu *); static struct type *die_descriptive_type (struct die_info *, struct dwarf2_cu *); @@ -16079,12 +16079,12 @@ die_type (struct die_info *die, struct dwarf2_cu *cu) that allows to find parallel types through that information instead of having to do expensive parallel lookups by type name. */ -static int +static bool need_gnat_info (struct dwarf2_cu *cu) { /* Assume that the Ada compiler was GNAT, which always produces the auxiliary information. */ - return (cu->lang () == language_ada); + return cu->lang () == language_ada; } /* Return the auxiliary type of the die in question using its