aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.h
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.h
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.h')
-rw-r--r--gdb/dwarf2read.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.h b/gdb/dwarf2read.h
index 7113cfd..c06093c 100644
--- a/gdb/dwarf2read.h
+++ b/gdb/dwarf2read.h
@@ -67,10 +67,10 @@ struct dwarf2_section_info
Only valid if is_virtual. */
bfd_size_type virtual_offset;
/* True if we have tried to read this section. */
- char readin;
+ bool readin;
/* True if this is a virtual section, False otherwise.
This specifies which of s.section and s.containing_section to use. */
- char is_virtual;
+ bool is_virtual;
};
typedef struct dwarf2_section_info dwarf2_section_info_def;