diff options
author | Alan Modra <amodra@gmail.com> | 2010-08-06 03:59:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-08-06 03:59:49 +0000 |
commit | 6ca4eb778968d5300583213b4ebe153c7eaad6f5 (patch) | |
tree | 13d6b8b1b0827451b755aba830c1fb8e4d454205 /opcodes/disassemble.c | |
parent | 1e0061d22e6a7cccc3b590c3cac3a8ae00b1437d (diff) | |
download | gdb-6ca4eb778968d5300583213b4ebe153c7eaad6f5.zip gdb-6ca4eb778968d5300583213b4ebe153c7eaad6f5.tar.gz gdb-6ca4eb778968d5300583213b4ebe153c7eaad6f5.tar.bz2 |
* disassemble.c: Formatting.
(disassemble_init_for_target <ARCH_m32c>): Comment on endian.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index b0cb4e3..0fb35ac 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -114,10 +114,8 @@ disassembler (abfd) #endif #ifdef ARCH_arc case bfd_arch_arc: - { - disassemble = arc_get_disassembler (abfd); - break; - } + disassemble = arc_get_disassembler (abfd); + break; #endif #ifdef ARCH_arm case bfd_arch_arm: @@ -317,9 +315,9 @@ disassembler (abfd) #ifdef ARCH_or32 case bfd_arch_or32: if (bfd_big_endian (abfd)) - disassemble = print_insn_big_or32; + disassemble = print_insn_big_or32; else - disassemble = print_insn_little_or32; + disassemble = print_insn_little_or32; break; #endif #ifdef ARCH_pdp11 @@ -361,9 +359,9 @@ disassembler (abfd) #ifdef ARCH_score case bfd_arch_score: if (bfd_big_endian (abfd)) - disassemble = print_insn_big_score; + disassemble = print_insn_big_score; else - disassemble = print_insn_little_score; + disassemble = print_insn_little_score; break; #endif #ifdef ARCH_sh @@ -530,6 +528,8 @@ disassemble_init_for_target (struct disassemble_info * info) #endif #ifdef ARCH_m32c case bfd_arch_m32c: + /* This processor in fact is little endian. The value set here + reflects the way opcodes are written in the cgen description. */ info->endian = BFD_ENDIAN_BIG; if (! info->insn_sets) { |