This changes linetable_entry::is_stmt to type bool, rather than
unsigned.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
{
stab->linetable->item[i].set_raw_pc ((CORE_ADDR) map[i].pc);
stab->linetable->item[i].line = map[i].line;
- stab->linetable->item[i].is_stmt = 1;
+ stab->linetable->item[i].is_stmt = true;
}
}
change was made I was unsure how to test this so chose to go with
maintaining the existing experience. */
if ((lines[i].raw_pc () == pc) && (lines[i].line != 0)
- && (lines[i].is_stmt == 1))
+ && lines[i].is_stmt)
range = btrace_line_range_add (range, lines[i].line);
}
int line;
/* True if this PC is a good location to place a breakpoint for LINE. */
- unsigned is_stmt : 1;
+ bool is_stmt : 1;
/* True if this location is a good location to place a breakpoint after a
function prologue. */
for (int ii = 0; ii < old_linetable.size (); ++ii)
{
- if (old_linetable[ii].is_stmt == 0)
+ if (!old_linetable[ii].is_stmt)
continue;
if (old_linetable[ii].line == 0)
fentries.emplace_back ();
linetable_entry &e = fentries.back ();
e.line = ii;
- e.is_stmt = 1;
+ e.is_stmt = true;
e.set_raw_pc (old_linetable[ii].raw_pc ());
}
}