From: Tom Tromey Date: Wed, 19 Nov 2025 20:32:00 +0000 (-0700) Subject: Return bool from block_starting_point_at X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4f2a89a564e441b6b4e0fa4dc7d6e12a0fd43b;p=thirdparty%2Fbinutils-gdb.git Return bool from block_starting_point_at This changes block_starting_point_at to return bool. --- diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c index 2191282c0c5..5ec18e90547 100644 --- a/gdb/inline-frame.c +++ b/gdb/inline-frame.c @@ -281,11 +281,11 @@ const struct frame_unwind_legacy inline_frame_unwind ( inline_frame_sniffer ); -/* Return non-zero if BLOCK, an inlined function block containing PC, +/* Return true if BLOCK, an inlined function block containing PC, has a group of contiguous instructions starting at PC (but not before it). */ -static int +static bool block_starting_point_at (CORE_ADDR pc, const struct block *block) { const struct blockvector *bv; @@ -293,19 +293,19 @@ block_starting_point_at (CORE_ADDR pc, const struct block *block) bv = blockvector_for_pc (pc, NULL); if (bv->map () == nullptr) - return 0; + return false; new_block = (const struct block *) bv->map ()->find (pc - 1); if (new_block == NULL) - return 1; + return true; if (new_block == block || block->contains (new_block)) - return 0; + return false; /* The immediately preceding address belongs to a different block, which is not a child of this one. Treat this as an entrance into BLOCK. */ - return 1; + return true; } /* Loop over the stop chain and determine if execution stopped in an