[binutils-gdb] Return bool from ada_has_this_exception_support

Tom Tromey 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=7d3212246840f9e8336e5ad8178e625cc4c6ae43

commit 7d3212246840f9e8336e5ad8178e625cc4c6ae43
Author: Tom Tromey <[email protected]>
Date:   Tue Mar 10 08:10:27 2026 -0600

    Return bool from ada_has_this_exception_support
    
    This changes ada_has_this_exception_support to return bool.
    
    Approved-By: Simon Marchi <[email protected]>

Diff:
---
 gdb/ada-lang.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 5097c5e0963..7565b036176 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11791,7 +11791,7 @@ static const struct exception_support_info exception_support_info_fallback =
    (for instance, if we find the exception support routines, but
    that support is found to be incomplete).  */
 
-static int
+static bool
 ada_has_this_exception_support (const struct exception_support_info *einfo)
 {
   struct symbol *sym;
@@ -11827,7 +11827,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo)
 		 "information.\nCannot insert Ada exception catchpoint "
 		 "in this configuration."));
 
-      return 0;
+      return false;
     }
 
   /* Make sure that the symbol we found corresponds to a function.  */
@@ -11849,7 +11849,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo)
 		 "information.\nCannot insert Ada exception catchpoint "
 		 "in this configuration."));
 
-      return 0;
+      return false;
     }
 
   /* Make sure that the symbol we found corresponds to a function.  */
@@ -11858,7 +11858,7 @@ ada_has_this_exception_support (const struct exception_support_info *einfo)
     error (_("Symbol \"%s\" is not a function (class = %d)"),
 	   sym->linkage_name (), sym->loc_class ());
 
-  return 1;
+  return true;
 }
 
 /* Inspect the Ada runtime and determine which exception info structure
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.