[binutils-gdb] gdb/dwarf: change piece_end_p 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=5ccdb9abe33c3cedbb75ea74820608ca28129626 commit 5ccdb9abe33c3cedbb75ea74820608ca28129626 Author: Simon Marchi <[email protected]> Date: Wed Mar 11 14:05:43 2026 -0400 gdb/dwarf: change piece_end_p to return bool Change-Id: Ia8f7f5a88161901f32415f16a0f911aeee50b6a8 Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/dwarf2/loc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;