]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: change piece_end_p to return bool
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 11 Mar 2026 18:05:43 +0000 (14:05 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 12 Mar 2026 14:20:51 +0000 (10:20 -0400)
Change-Id: Ia8f7f5a88161901f32415f16a0f911aeee50b6a8
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/loc.c

index c310fa3d8afd1e01081764899ef0819dca06cb95..273d3d942b5af6d7ef368e6f6ca11e9861fdf905 100644 (file)
@@ -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;