[binutils-gdb] gdb/dwarf: change dwarf2_frame_signal_frame_p 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=baca957172aa7b6ad49184a8ef378d5853bae124

commit baca957172aa7b6ad49184a8ef378d5853bae124
Author: Simon Marchi <[email protected]>
Date:   Wed Mar 11 14:05:42 2026 -0400

    gdb/dwarf: change dwarf2_frame_signal_frame_p to return bool
    
    Change-Id: Iaa387e7c3eca9c8a131798442adcf0136e9eb16c
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/dwarf2/frame.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gdb/dwarf2/frame.c b/gdb/dwarf2/frame.c
index 83dd7c2bc8c..f9046bb51df 100644
--- a/gdb/dwarf2/frame.c
+++ b/gdb/dwarf2/frame.c
@@ -694,14 +694,15 @@ dwarf2_frame_set_signal_frame_p (struct gdbarch *gdbarch,
 /* Query the architecture-specific signal frame recognizer for
    THIS_FRAME.  */
 
-static int
+static bool
 dwarf2_frame_signal_frame_p (struct gdbarch *gdbarch,
 			     const frame_info_ptr &this_frame)
 {
   struct dwarf2_frame_ops *ops = get_frame_ops (gdbarch);
 
   if (ops->signal_frame_p == NULL)
-    return 0;
+    return false;
+
   return ops->signal_frame_p (gdbarch, this_frame);
 }
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.