[binutils-gdb] gdb/dwarf: change call_site_parameter_matches 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=5483fe34d4fdd0a8c2688d6ca1a69ad28bd0521f commit 5483fe34d4fdd0a8c2688d6ca1a69ad28bd0521f Author: Simon Marchi <[email protected]> Date: Wed Mar 11 14:05:38 2026 -0400 gdb/dwarf: change call_site_parameter_matches to return bool Change-Id: Ic131c1752151a1b275c06c3dc92d86bcc925d6f7 Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/dwarf2/loc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c index 2d63be7d57e..8dfd04461be 100644 --- a/gdb/dwarf2/loc.c +++ b/gdb/dwarf2/loc.c @@ -1110,9 +1110,9 @@ call_site_find_chain (struct gdbarch *gdbarch, CORE_ADDR caller_pc, return retval; } -/* Return 1 if KIND and KIND_U match PARAMETER. Return 0 otherwise. */ +/* Return true if KIND and KIND_U match PARAMETER. Return false otherwise. */ -static int +static bool call_site_parameter_matches (struct call_site_parameter *parameter, enum call_site_parameter_kind kind, union call_site_parameter_u kind_u) @@ -1129,7 +1129,8 @@ call_site_parameter_matches (struct call_site_parameter *parameter, case CALL_SITE_PARAMETER_PARAM_OFFSET: return kind_u.param_cu_off == parameter->u.param_cu_off; } - return 0; + + return false; } /* See loc.h. */