From: Simon Marchi Date: Wed, 11 Mar 2026 18:05:43 +0000 (-0400) Subject: gdb/dwarf: change piece_end_p to return bool X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ccdb9abe33c3cedbb75ea74820608ca28129626;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf: change piece_end_p to return bool Change-Id: Ia8f7f5a88161901f32415f16a0f911aeee50b6a8 Approved-By: Tom Tromey --- diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c index c310fa3d8af..273d3d942b5 100644 --- a/gdb/dwarf2/loc.c +++ b/gdb/dwarf2/loc.c @@ -3132,7 +3132,7 @@ locexpr_get_symbol_read_needs (struct symbol *symbol) /* Return true if DATA points to the end of a piece. END is one past the last byte in the expression. */ -static int +static bool piece_end_p (const gdb_byte *data, const gdb_byte *end) { return data == end || data[0] == DW_OP_piece || data[0] == DW_OP_bit_piece;