diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:39:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 015dc7e1f8a971692a910e6cfc64faf9216e75c3 (patch) | |
tree | 53f0eb6489d86f4a6b734115c79c4e131af5416c /binutils/dwarf.h | |
parent | 78933a4ad9ae9c2e274d41e6b3036ea582c47810 (diff) | |
download | fsf-binutils-gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.zip fsf-binutils-gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.gz fsf-binutils-gdb-015dc7e1f8a971692a910e6cfc64faf9216e75c3.tar.bz2 |
Use bool in binutils
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
* binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
* debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
* elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
* objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
* readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
* windmc.c, * windmc.h, * windres.c, * winduni.c,
* wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r-- | binutils/dwarf.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 043d3f9..2070c6f 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -150,10 +150,10 @@ struct dwarf_section and a pointer to a function that can decode it. */ struct dwarf_section_display { - struct dwarf_section section; - int (* display) (struct dwarf_section *, void *); - int * enabled; - bfd_boolean relocate; + struct dwarf_section section; + int (*display) (struct dwarf_section *, void *); + int *enabled; + bool relocate; }; extern struct dwarf_section_display debug_displays []; @@ -221,7 +221,7 @@ extern int do_debug_cu_index; extern int do_wide; extern int do_debug_links; extern int do_follow_links; -extern bfd_boolean do_checks; +extern bool do_checks; extern int dwarf_cutoff_level; extern unsigned long dwarf_start_die; @@ -232,11 +232,11 @@ extern void init_dwarf_regnames_by_elf_machine_code (unsigned int); extern void init_dwarf_regnames_by_bfd_arch_and_mach (enum bfd_architecture arch, unsigned long mach); -extern bfd_boolean load_debug_section (enum dwarf_section_display_enum, void *); -extern void free_debug_section (enum dwarf_section_display_enum); -extern bfd_boolean load_separate_debug_files (void *, const char *); -extern void close_debug_file (void *); -extern void * open_debug_file (const char *); +extern bool load_debug_section (enum dwarf_section_display_enum, void *); +extern void free_debug_section (enum dwarf_section_display_enum); +extern bool load_separate_debug_files (void *, const char *); +extern void close_debug_file (void *); +extern void *open_debug_file (const char *); extern void free_debug_memory (void); @@ -254,10 +254,10 @@ extern void * xcrealloc (void *, size_t, size_t); /* A callback into the client. Returns TRUE if there is a relocation against the given debug section at the given offset. */ -extern bfd_boolean reloc_at (struct dwarf_section *, dwarf_vma); +extern bool reloc_at (struct dwarf_section *, dwarf_vma); extern dwarf_vma read_leb128 (unsigned char *, const unsigned char *const, - bfd_boolean, unsigned int *, int *); + bool, unsigned int *, int *); #if HAVE_LIBDEBUGINFOD extern unsigned char * get_build_id (void *); @@ -276,7 +276,7 @@ report_leb_status (int status, const char *file, unsigned long lnum) do \ { \ unsigned int _len; \ - read_leb128 (start, end, FALSE, &_len, NULL); \ + read_leb128 (start, end, false, &_len, NULL); \ start += _len; \ } \ while (0) @@ -285,7 +285,7 @@ report_leb_status (int status, const char *file, unsigned long lnum) do \ { \ unsigned int _len; \ - read_leb128 (start, end, TRUE, &_len, NULL); \ + read_leb128 (start, end, true, &_len, NULL); \ start += _len; \ } \ while (0) @@ -297,7 +297,7 @@ report_leb_status (int status, const char *file, unsigned long lnum) unsigned int _len; \ int _status; \ \ - _val = read_leb128 (start, end, FALSE, &_len, &_status); \ + _val = read_leb128 (start, end, false, &_len, &_status); \ start += _len; \ (var) = _val; \ if ((var) != _val) \ @@ -313,7 +313,7 @@ report_leb_status (int status, const char *file, unsigned long lnum) unsigned int _len; \ int _status; \ \ - _val = read_leb128 (start, end, TRUE, &_len, &_status); \ + _val = read_leb128 (start, end, true, &_len, &_status); \ start += _len; \ (var) = _val; \ if ((var) != _val) \ |