aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-07 18:26:06 -0700
committerTom Tromey <tom@tromey.com>2023-03-11 08:48:29 -0700
commitddc6677b170be399dfcc7d81325870ff022ba875 (patch)
tree1152a15de8b893033b69ee48da454a25c58a3f1a /gdb/xcoffread.c
parent82c5090c61ed2a4a6cd37e575ae66323e0a837f7 (diff)
downloadfsf-binutils-gdb-ddc6677b170be399dfcc7d81325870ff022ba875.zip
fsf-binutils-gdb-ddc6677b170be399dfcc7d81325870ff022ba875.tar.gz
fsf-binutils-gdb-ddc6677b170be399dfcc7d81325870ff022ba875.tar.bz2
Change linetable_entry::is_stmt to bool
This changes linetable_entry::is_stmt to type bool, rather than unsigned. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 0642fb5..72c0a0d 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -422,7 +422,7 @@ arrange_linetable (std::vector<linetable_entry> &old_linetable)
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)
@@ -431,7 +431,7 @@ arrange_linetable (std::vector<linetable_entry> &old_linetable)
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 ());
}
}