mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
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.
This commit is contained in:

committed by
Simon Marchi

parent
b13a7d03c2
commit
dc4ccb6f7f
@ -1,3 +1,10 @@
|
|||||||
|
2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2019-06-19 Tom Tromey <tom@tromey.com>
|
2019-06-19 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-data.h (tui_init_content_element): Don't declare.
|
* tui/tui-data.h (tui_init_content_element): Don't declare.
|
||||||
|
@ -2474,7 +2474,7 @@ dwarf2_read_section (struct objfile *objfile, dwarf2_section_info *info)
|
|||||||
if (info->readin)
|
if (info->readin)
|
||||||
return;
|
return;
|
||||||
info->buffer = NULL;
|
info->buffer = NULL;
|
||||||
info->readin = 1;
|
info->readin = true;
|
||||||
|
|
||||||
if (dwarf2_section_empty_p (info))
|
if (dwarf2_section_empty_p (info))
|
||||||
return;
|
return;
|
||||||
@ -12513,7 +12513,7 @@ create_dwp_v2_section (struct dwarf2_per_objfile *dwarf2_per_objfile,
|
|||||||
|
|
||||||
memset (&result, 0, sizeof (result));
|
memset (&result, 0, sizeof (result));
|
||||||
result.s.containing_section = section;
|
result.s.containing_section = section;
|
||||||
result.is_virtual = 1;
|
result.is_virtual = true;
|
||||||
|
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
return result;
|
return result;
|
||||||
|
@ -67,10 +67,10 @@ struct dwarf2_section_info
|
|||||||
Only valid if is_virtual. */
|
Only valid if is_virtual. */
|
||||||
bfd_size_type virtual_offset;
|
bfd_size_type virtual_offset;
|
||||||
/* True if we have tried to read this section. */
|
/* True if we have tried to read this section. */
|
||||||
char readin;
|
bool readin;
|
||||||
/* True if this is a virtual section, False otherwise.
|
/* True if this is a virtual section, False otherwise.
|
||||||
This specifies which of s.section and s.containing_section to use. */
|
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;
|
typedef struct dwarf2_section_info dwarf2_section_info_def;
|
||||||
|
Reference in New Issue
Block a user