aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2017-12-15 06:45:47 +0200
committerAlan Modra <amodra@gmail.com>2017-12-15 19:52:49 +1030
commitfbc2255575afc0d332b28fd4991235e020cda667 (patch)
tree43563a18dd75832ca794a4e6375a96d4ec2aa464
parent141975a1e53798a48917271295962fb1a7e967d0 (diff)
downloadgdb-fbc2255575afc0d332b28fd4991235e020cda667.zip
gdb-fbc2255575afc0d332b28fd4991235e020cda667.tar.gz
gdb-fbc2255575afc0d332b28fd4991235e020cda667.tar.bz2
Fix disassembly for PowerPC
* disassemble.c (disassemble_init_for_target): Don't put PRU between powerpc and rs6000 cases.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/disassemble.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f7d2452..0026eb9 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-15 Dimitar Dimitrov <dimitar@dinux.eu>
+
+ * disassemble.c (disassemble_init_for_target): Don't put PRU
+ between powerpc and rs6000 cases.
+
2017-12-15 Jan Beulich <jbeulich@suse.com>
* i386-opc.tbl (adc, add, and, cmp, cmps, in, ins, lods, mov,
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index fa9a765..70ee65a 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -651,14 +651,14 @@ disassemble_init_for_target (struct disassemble_info * info)
}
break;
#endif
-#ifdef ARCH_powerpc
- case bfd_arch_powerpc:
-#endif
#ifdef ARCH_pru
case bfd_arch_pru:
info->disassembler_needs_relocs = TRUE;
break;
#endif
+#ifdef ARCH_powerpc
+ case bfd_arch_powerpc:
+#endif
#ifdef ARCH_rs6000
case bfd_arch_rs6000:
#endif