diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:39:51 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc (patch) | |
tree | 38d5b486b39b163f1581abf67889d191a8e5cc9f /ld/testplug3.c | |
parent | 015dc7e1f8a971692a910e6cfc64faf9216e75c3 (diff) | |
download | gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.zip gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.tar.gz gdb-f38a2680c2f04db6eac4fd87380cd3cf7bcb3bcc.tar.bz2 |
Use bool in ld
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* configure.ac (elf_list_options, elf_shlib_list_options=false),
(elf_plt_unwind_list_options=false): Replace FALSE with false,
and TRUE with true.
* emulparams/call_nop.sh, * emulparams/cet.sh,
* emulparams/dynamic_undefined_weak.sh,
* emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
* emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
* emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
* emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
* emulparams/reloc_overflow.sh, * emulparams/static.sh,
* emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
* emultempl/aix.em, * emultempl/alphaelf.em,
* emultempl/armcoff.em, * emultempl/armelf.em,
* emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
* emultempl/cr16elf.em, * emultempl/crxelf.em,
* emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
* emultempl/hppaelf.em, * emultempl/linux.em,
* emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
* emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
* emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
* emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
* emultempl/pep.em, * emultempl/ppc32elf.em,
* emultempl/ppc64elf.em, * emultempl/rxelf.em,
* emultempl/rxlinux.em, * emultempl/scoreelf.em,
* emultempl/solaris2.em, * emultempl/spuelf.em,
* emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
* emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
* ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
* ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
* ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
* ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
* ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
* pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
* testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
bfd_boolean with bool, FALSE with false, and TRUE with true.
* configure: Regenerate.
Diffstat (limited to 'ld/testplug3.c')
-rw-r--r-- | ld/testplug3.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ld/testplug3.c b/ld/testplug3.c index 6b8b34a..155b5df 100644 --- a/ld/testplug3.c +++ b/ld/testplug3.c @@ -41,7 +41,7 @@ typedef struct claim_file { struct claim_file *next; struct ld_plugin_input_file file; - bfd_boolean claimed; + bool claimed; struct ld_plugin_symbol *symbols; int n_syms_allocated; int n_syms_used; @@ -122,10 +122,10 @@ static enum ld_plugin_status onload_ret = LDPS_OK; static enum ld_plugin_status claim_file_ret = LDPS_OK; static enum ld_plugin_status all_symbols_read_ret = LDPS_OK; static enum ld_plugin_status cleanup_ret = LDPS_OK; -static bfd_boolean register_claimfile_hook = TRUE; -static bfd_boolean register_allsymbolsread_hook = FALSE; -static bfd_boolean register_cleanup_hook = FALSE; -static bfd_boolean dumpresolutions = FALSE; +static bool register_claimfile_hook = true; +static bool register_allsymbolsread_hook = false; +static bool register_cleanup_hook = false; +static bool dumpresolutions = false; /* The master list of all claimable/claimed files. */ static claim_file_t *claimfiles_list = NULL; @@ -305,7 +305,7 @@ set_ret_val (const char *whichval, enum ld_plugin_status retval) /* Records hooks which should be registered. */ static enum ld_plugin_status -set_register_hook (const char *whichhook, bfd_boolean yesno) +set_register_hook (const char *whichhook, bool yesno) { if (!strcmp ("claimfile", whichhook)) register_claimfile_hook = yesno; @@ -327,9 +327,9 @@ parse_option (const char *opt) else if (!strncmp ("pass", opt, 4)) return set_ret_val (opt + 4, LDPS_OK); else if (!strncmp ("register", opt, 8)) - return set_register_hook (opt + 8, TRUE); + return set_register_hook (opt + 8, true); else if (!strncmp ("noregister", opt, 10)) - return set_register_hook (opt + 10, FALSE); + return set_register_hook (opt + 10, false); else if (!strncmp ("claim:", opt, 6)) return record_claim_file (opt + 6, 0); else if (!strncmp ("sym:", opt, 4)) @@ -341,7 +341,7 @@ parse_option (const char *opt) else if (!strncmp ("dir:", opt, 4)) return record_add_file (opt + 4, ADD_DIR); else if (!strcmp ("dumpresolutions", opt)) - dumpresolutions = TRUE; + dumpresolutions = true; else return LDPS_ERR; return LDPS_OK; @@ -497,7 +497,7 @@ onclaim_file (const struct ld_plugin_input_file *file, int *claimed) size_t len = strlen (file->name); char *name = xstrdup (file->name); char *p = name + len; - bfd_boolean islib; + bool islib; /* Only match the file name without the directory part. */ islib = *p == 'a' && *(p - 1) == '.'; @@ -532,7 +532,7 @@ onclaim_file (const struct ld_plugin_input_file *file, int *claimed) TV_MESSAGE (LDPL_INFO, "Claimed: %s [@%ld/%ld]", file->name, (long)file->offset, (long)file->filesize); - claimfile->claimed = TRUE; + claimfile->claimed = true; claimfile->file = *file; if (claimfile->n_syms_used && !tv_add_symbols) claim_file_ret = LDPS_ERR; |