mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -100,9 +100,9 @@ get_sym_code_type (struct disassemble_info *info,
|
||||
&& (name[2] == 0 || name[2] == '.'))
|
||||
{
|
||||
*sym_type = ((name[1] == 't') ? CUR_TEXT : CUR_DATA);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static int
|
||||
@ -200,7 +200,7 @@ csky_find_inst_info (struct csky_opcode_info const **pinfo,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static bfd_boolean
|
||||
static bool
|
||||
is_extern_symbol (struct disassemble_info *info, int addr)
|
||||
{
|
||||
unsigned int rel_count = 0;
|
||||
@ -212,24 +212,24 @@ is_extern_symbol (struct disassemble_info *info, int addr)
|
||||
struct reloc_cache_entry *pt = info->section->relocation;
|
||||
for (; rel_count < info->section->reloc_count; rel_count++, pt++)
|
||||
if ((long unsigned int)addr == pt->address)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/* Suppress printing of mapping symbols emitted by the assembler to mark
|
||||
the beginning of code and data sequences. */
|
||||
|
||||
bfd_boolean
|
||||
bool
|
||||
csky_symbol_is_valid (asymbol *sym,
|
||||
struct disassemble_info *info ATTRIBUTE_UNUSED)
|
||||
{
|
||||
const char *name;
|
||||
|
||||
if (sym == NULL)
|
||||
return FALSE;
|
||||
return false;
|
||||
name = bfd_asymbol_name (sym);
|
||||
return name && *name != '$';
|
||||
}
|
||||
@ -776,7 +776,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
|
||||
case OPRND_TYPE_PSR_BITS_LIST:
|
||||
{
|
||||
struct psrbit const *bits;
|
||||
int first_oprnd = TRUE;
|
||||
int first_oprnd = true;
|
||||
int i = 0;
|
||||
if (IS_CSKY_V1 (mach_flag))
|
||||
{
|
||||
@ -797,7 +797,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
|
||||
strcat (str, ", ");
|
||||
strcat (str, bits[i].name);
|
||||
value &= ~bits[i].value;
|
||||
first_oprnd = FALSE;
|
||||
first_oprnd = false;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
@ -1049,7 +1049,7 @@ print_insn_csky (bfd_vma memaddr, struct disassemble_info *info)
|
||||
int status;
|
||||
char str[256];
|
||||
unsigned long given;
|
||||
int is_data = FALSE;
|
||||
int is_data = false;
|
||||
void (*printer) (bfd_vma, struct disassemble_info *, long);
|
||||
unsigned int size = 4;
|
||||
|
||||
|
Reference in New Issue
Block a user