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/msp430-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/msp430-dis.c')
-rw-r--r-- | opcodes/msp430-dis.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/opcodes/msp430-dis.c b/opcodes/msp430-dis.c index 5e4f1fb..1dac644 100644 --- a/opcodes/msp430-dis.c +++ b/opcodes/msp430-dis.c @@ -37,7 +37,7 @@ #define PS(x) (0xffff & (x)) -static bfd_boolean +static bool msp430dis_read_two_bytes (bfd_vma addr, disassemble_info * info, bfd_byte * buffer, @@ -47,7 +47,7 @@ msp430dis_read_two_bytes (bfd_vma addr, status = info->read_memory_func (addr, buffer, 2, info); if (status == 0) - return TRUE; + return true; /* PR 20150: A status of EIO means that there were no more bytes left to read in the current section. This can happen when disassembling @@ -65,10 +65,10 @@ msp430dis_read_two_bytes (bfd_vma addr, sprintf (comm, _("Error: read from memory failed")); } - return FALSE; + return false; } -static bfd_boolean +static bool msp430dis_opcode_unsigned (bfd_vma addr, disassemble_info * info, unsigned short * return_val, @@ -79,16 +79,16 @@ msp430dis_opcode_unsigned (bfd_vma addr, if (msp430dis_read_two_bytes (addr, info, buffer, comm)) { * return_val = bfd_getl16 (buffer); - return TRUE; + return true; } else { * return_val = 0; - return FALSE; + return false; } } -static bfd_boolean +static bool msp430dis_opcode_signed (bfd_vma addr, disassemble_info * info, signed int * return_val, @@ -104,12 +104,12 @@ msp430dis_opcode_signed (bfd_vma addr, if (status & 0x8000) status |= -1U << 16; * return_val = status; - return TRUE; + return true; } else { * return_val = 0; - return FALSE; + return false; } } |