aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-06-21 14:10:13 -0400
committerSimon Marchi <simon.marchi@efficios.com>2019-06-21 14:10:13 -0400
commitdc4ccb6f7f07e41616fd42625226229f0795d198 (patch)
treea0a16a40a6a61cc73a98b1af7d66b32e5fb7a23b /gdb/dwarf2read.c
parentb13a7d03c29e28bc0b38ce166ad1907403709d36 (diff)
downloadgdb-dc4ccb6f7f07e41616fd42625226229f0795d198.zip
gdb-dc4ccb6f7f07e41616fd42625226229f0795d198.tar.gz
gdb-dc4ccb6f7f07e41616fd42625226229f0795d198.tar.bz2
dwarf2read: Use bool for dwarf2_section_info fields
Use bool instead of char where applicable in dwarf2_section_info. No functional changes intended. gdb/ChangeLog: * dwarf2read.h (struct dwarf2_section_info) <readin, is_virtual>: Change type to bool. * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use true instead of 1.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 9cf513b..bfc3624 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2474,7 +2474,7 @@ dwarf2_read_section (struct objfile *objfile, dwarf2_section_info *info)
if (info->readin)
return;
info->buffer = NULL;
- info->readin = 1;
+ info->readin = true;
if (dwarf2_section_empty_p (info))
return;
@@ -12513,7 +12513,7 @@ create_dwp_v2_section (struct dwarf2_per_objfile *dwarf2_per_objfile,
memset (&result, 0, sizeof (result));
result.s.containing_section = section;
- result.is_virtual = 1;
+ result.is_virtual = true;
if (size == 0)
return result;