diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a5f8b569f82..6a538f9eb863 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-07-03 Tom Tromey + + * dwarf2/read.c (lnp_state_machine::record_line): Use 'true'. + (dwarf_decode_lines): Remove '=='. + 2021-07-02 Tom Tromey * ada-exp.y (chop_selector, chop_separator, write_selectors) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 760d4319c296..fe82175990e4 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -20997,7 +20997,7 @@ lnp_state_machine::record_line (bool end_sequence) previous version of the code. */ else if (m_op_index == 0 || end_sequence) { - fe->included_p = 1; + fe->included_p = true; if (m_record_lines_p) { /* When we switch files we insert an end maker in the first file, @@ -21368,7 +21368,7 @@ dwarf_decode_lines (struct line_header *lh, const char *comp_dir, /* Now that we're done scanning the Line Header Program, we can create the psymtab of each included file. */ for (auto &file_entry : lh->file_names ()) - if (file_entry.included_p == 1) + if (file_entry.included_p) { gdb::unique_xmalloc_ptr name_holder; const char *include_name =