aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-02-10 03:42:43 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-02-10 03:42:43 +0000
commit9f05921fb73c6a46f06340eaa6bb56749f335bfd (patch)
tree8148de0c0a8b752cb1725f117b6654f453ecc03e
parent6acc9345e1c7da4b8ee585d23920fc591d759a8e (diff)
downloadgdb-9f05921fb73c6a46f06340eaa6bb56749f335bfd.zip
gdb-9f05921fb73c6a46f06340eaa6bb56749f335bfd.tar.gz
gdb-9f05921fb73c6a46f06340eaa6bb56749f335bfd.tar.bz2
* disassemble.c (disassembler, case bfd_arch_arc): Call
arc_disassembler to get disassembler routine.
-rw-r--r--opcodes/ChangeLog2
-rw-r--r--opcodes/disassemble.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index d0098eb..5a68460 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -16,6 +16,8 @@ Thu Feb 9 19:19:23 1995 Doug Evans <dje@canuck.cygnus.com>
(ss, sc, mh, ml): New suffixes.
(arc_opcode_supported, arc_opval_supported): New functions.
(insert_multshift, extract_multshift): Deleted.
+ * disassemble.c (disassembler, case bfd_arch_arc): Call
+ arc_disassembler to get disassembler routine.
end-sanitize-arc
Thu Feb 9 12:28:13 1995 Stan Shebs <shebs@andros.cygnus.com>
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index fec0749..9d2cde5 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -1,5 +1,5 @@
/* Select disassembly routine for specified architecture.
- Copyright 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,6 +21,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef ARCH_all
#define ARCH_a29k
#define ARCH_alpha
+/* start-sanitize-arc */
+#define ARCH_arc
+/* end-sanitize-arc */
#define ARCH_arm
#define ARCH_h8300
#define ARCH_h8500
@@ -35,6 +38,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define ARCH_rs6000
#define ARCH_sh
#define ARCH_sparc
+#define ARCH_w65
#define ARCH_z8k
#endif
@@ -60,6 +64,15 @@ disassembler (abfd)
disassemble = print_insn_alpha;
break;
#endif
+/* start-sanitize-arc */
+#ifdef ARCH_arc
+ case bfd_arch_arc:
+ {
+ disassemble = arc_disassembler (abfd);
+ break;
+ }
+#endif
+/* end-sanitize-arc */
#ifdef ARCH_arm
case bfd_arch_arm:
disassemble = print_insn_arm;
@@ -142,6 +155,11 @@ disassembler (abfd)
disassemble = print_insn_sparc;
break;
#endif
+#ifdef ARCH_w65
+ case bfd_arch_w65:
+ disassemble = print_insn_w65;
+ break;
+#endif
#ifdef ARCH_z8k
case bfd_arch_z8k:
if (bfd_get_mach(abfd) == bfd_mach_z8001)