diff options
author | Alan Modra <amodra@gmail.com> | 2002-11-30 08:39:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-11-30 08:39:46 +0000 |
commit | b34976b65aea8f33690229600bbf4527ec3118e1 (patch) | |
tree | 6411348664ef81ca2aa2e3ff325116e6e6502edf /opcodes/cris-dis.c | |
parent | 583d52d728c60410c0d39bae68ee536a7b9e7a6c (diff) | |
download | gdb-b34976b65aea8f33690229600bbf4527ec3118e1.zip gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.gz gdb-b34976b65aea8f33690229600bbf4527ec3118e1.tar.bz2 |
s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
Diffstat (limited to 'opcodes/cris-dis.c')
-rw-r--r-- | opcodes/cris-dis.c | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/opcodes/cris-dis.c b/opcodes/cris-dis.c index 33806ee..6beb4ab 100644 --- a/opcodes/cris-dis.c +++ b/opcodes/cris-dis.c @@ -1,5 +1,5 @@ /* Disassembler code for CRIS. - Copyright 2000, 2001 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Axis Communications AB, Lund, Sweden. Written by Hans-Peter Nilsson. @@ -77,22 +77,28 @@ static long no_of_case_offsets = 0; /* Candidate for next case_offset. */ static long last_immediate = 0; -static int number_of_bits PARAMS ((unsigned int)); -static char *format_hex PARAMS ((unsigned long, char *)); -static char *format_dec PARAMS ((long, char *, int)); -static char *format_reg PARAMS ((int, char *, boolean)); -static int cris_constraint PARAMS ((const char *, unsigned int, - unsigned int)); -static unsigned bytes_to_skip PARAMS ((unsigned int, - const struct cris_opcode *)); -static char *print_flags PARAMS ((unsigned int, char *)); +static int number_of_bits + PARAMS ((unsigned int)); +static char *format_hex + PARAMS ((unsigned long, char *)); +static char *format_dec + PARAMS ((long, char *, int)); +static char *format_reg + PARAMS ((int, char *, bfd_boolean)); +static int cris_constraint + PARAMS ((const char *, unsigned int, unsigned int)); +static unsigned bytes_to_skip + PARAMS ((unsigned int, const struct cris_opcode *)); +static char *print_flags + PARAMS ((unsigned int, char *)); static void print_with_operands PARAMS ((const struct cris_opcode *, unsigned int, unsigned char *, bfd_vma, disassemble_info *, const struct cris_opcode *, - unsigned int, unsigned char *, boolean)); -static const struct cris_spec_reg *spec_reg_info PARAMS ((unsigned int)); + unsigned int, unsigned char *, bfd_boolean)); +static const struct cris_spec_reg *spec_reg_info + PARAMS ((unsigned int)); static int print_insn_cris_generic - PARAMS ((bfd_vma, disassemble_info *, boolean)); + PARAMS ((bfd_vma, disassemble_info *, bfd_boolean)); static int print_insn_cris_with_register_prefix PARAMS ((bfd_vma, disassemble_info *)); static int print_insn_cris_without_register_prefix @@ -334,7 +340,7 @@ static char * format_reg (regno, outbuffer_start, with_reg_prefix) int regno; char *outbuffer_start; - boolean with_reg_prefix; + bfd_boolean with_reg_prefix; { char *outbuffer = outbuffer_start; @@ -593,7 +599,7 @@ print_with_operands (opcodep, insn, buffer, addr, info, prefix_opcodep, const struct cris_opcode *prefix_opcodep; unsigned int prefix_insn; unsigned char *prefix_buffer; - boolean with_reg_prefix; + bfd_boolean with_reg_prefix; { /* Get a buffer of somewhat reasonable size where we store intermediate parts of the insn. */ @@ -1186,7 +1192,7 @@ static int print_insn_cris_generic (memaddr, info, with_reg_prefix) bfd_vma memaddr; disassemble_info *info; - boolean with_reg_prefix; + bfd_boolean with_reg_prefix; { int nbytes; unsigned int insn; @@ -1369,7 +1375,7 @@ print_insn_cris_with_register_prefix (vma, info) bfd_vma vma; disassemble_info *info; { - return print_insn_cris_generic (vma, info, true); + return print_insn_cris_generic (vma, info, TRUE); } /* Disassemble, no prefixes on register names. */ @@ -1379,7 +1385,7 @@ print_insn_cris_without_register_prefix (vma, info) bfd_vma vma; disassemble_info *info; { - return print_insn_cris_generic (vma, info, false); + return print_insn_cris_generic (vma, info, FALSE); } /* Return a disassembler-function that prints registers with a `$' prefix, |