diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:36:19 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:49:23 +1030 |
commit | 78933a4ad9ae9c2e274d41e6b3036ea582c47810 (patch) | |
tree | d88281747f95a9e279e16043aaf57c7093481d85 /opcodes/score7-dis.c | |
parent | 0a1b45a20eaa98d4d9026dc1fd17e79e741183af (diff) | |
download | gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.zip gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.tar.gz gdb-78933a4ad9ae9c2e274d41e6b3036ea582c47810.tar.bz2 |
Use bool in opcodes
cpu/
* frv.opc: Replace bfd_boolean with bool, FALSE with false, and
TRUE with true throughout.
opcodes/
* sysdep.h (POISON_BFD_BOOLEAN): Define.
* aarch64-asm-2.c, * aarch64-asm.c, * aarch64-asm.h,
* aarch64-dis-2.c, * aarch64-dis.c, * aarch64-dis.h,
* aarch64-gen.c, * aarch64-opc.c, * aarch64-opc.h, * arc-dis.c,
* arc-dis.h, * arc-fxi.h, * arc-opc.c, * arm-dis.c, * bfin-dis.c,
* cris-dis.c, * csky-dis.c, * csky-opc.h, * dis-buf.c,
* disassemble.c, * frv-opc.c, * frv-opc.h, * h8300-dis.c,
* i386-dis.c, * m68k-dis.c, * metag-dis.c, * microblaze-dis.c,
* microblaze-dis.h, * micromips-opc.c, * mips-dis.c,
* mips-formats.h, * mips-opc.c, * mips16-opc.c, * mmix-dis.c,
* msp430-dis.c, * nds32-dis.c, * nfp-dis.c, * nios2-dis.c,
* ppc-dis.c, * riscv-dis.c, * score-dis.c, * score7-dis.c,
* tic6x-dis.c, * v850-dis.c, * vax-dis.c, * wasm32-dis.c,
* xtensa-dis.c: Replace bfd_boolean with bool, FALSE with false,
and TRUE with true throughout.
Diffstat (limited to 'opcodes/score7-dis.c')
-rw-r--r-- | opcodes/score7-dis.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/opcodes/score7-dis.c b/opcodes/score7-dis.c index 7207fde..5387307 100644 --- a/opcodes/score7-dis.c +++ b/opcodes/score7-dis.c @@ -539,7 +539,7 @@ static unsigned int regname_selected = 0; /* s3_s7: opcodes and export prototypes. */ int -s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little); +s7_print_insn (bfd_vma pc, struct disassemble_info *info, bool little); /* Print one instruction from PC on INFO->STREAM. Return the size of the instruction. */ @@ -867,14 +867,14 @@ print_insn_score16 (bfd_vma pc, struct disassemble_info *info, long given) /* NOTE: There are no checks in these routines that the relevant number of data bytes exist. */ int -s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) +s7_print_insn (bfd_vma pc, struct disassemble_info *info, bool little) { unsigned char b[4]; unsigned long given; long ridparity; int status; - bfd_boolean insn_pce_p = FALSE; - bfd_boolean insn_16_p = FALSE; + bool insn_pce_p = false; + bool insn_16_p = false; info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG; @@ -883,7 +883,7 @@ s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) info->bytes_per_chunk = 2; status = info->read_memory_func (pc, (bfd_byte *) b, 2, info); b[3] = b[2] = 0; - insn_16_p = TRUE; + insn_16_p = true; } else { @@ -894,7 +894,7 @@ s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) info->bytes_per_chunk = 2; status = info->read_memory_func (pc, (bfd_byte *) b, 2, info); b[3] = b[2] = 0; - insn_16_p = TRUE; + insn_16_p = true; } } @@ -911,13 +911,13 @@ s7_print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) if ((given & 0x80008000) == 0x80008000) { - insn_pce_p = FALSE; - insn_16_p = FALSE; + insn_pce_p = false; + insn_16_p = false; } else if ((given & 0x8000) == 0x8000) - insn_pce_p = TRUE; + insn_pce_p = true; else - insn_16_p = TRUE; + insn_16_p = true; /* 16 bit instruction. */ if (insn_16_p) |