[binutils-gdb] gdb/dwarf: change die_is_declaration 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=74d8d1d2c53e277af0019488e570f81207e4052a

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

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

Diff:
---
 gdb/dwarf2/read.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 827772a2af7..155e5d94dbc 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -727,7 +727,7 @@ static const char *dwarf2_dwo_name (struct die_info *die, struct dwarf2_cu *cu);
 static bool dwarf2_flag_true_p (struct die_info *die, unsigned name,
 				struct dwarf2_cu *cu);
 
-static int die_is_declaration (struct die_info *, struct dwarf2_cu *cu);
+static bool die_is_declaration (struct die_info *, struct dwarf2_cu *cu);
 
 static struct die_info *die_specification (struct die_info *die,
 					   struct dwarf2_cu **);
@@ -15187,7 +15187,7 @@ dwarf2_flag_true_p (struct die_info *die, unsigned name, struct dwarf2_cu *cu)
   return attr != nullptr && attr->as_boolean ();
 }
 
-static int
+static bool
 die_is_declaration (struct die_info *die, struct dwarf2_cu *cu)
 {
   /* A DIE is a declaration if it has a DW_AT_declaration attribute
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.