aboutsummaryrefslogtreecommitdiff
path: root/opcodes/disassemble.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-07-22 17:19:09 +0000
committerIan Lance Taylor <ian@airs.com>1996-07-22 17:19:09 +0000
commite7bc7bc3fc1290c7e0fbb1dbcfb8ef8b77b97639 (patch)
tree16bf81d8ef971d799d0dd6cb97279980e808b083 /opcodes/disassemble.c
parent04cf159485b94140ef6f22b363b29665d1e92f9b (diff)
downloadbinutils-e7bc7bc3fc1290c7e0fbb1dbcfb8ef8b77b97639.zip
binutils-e7bc7bc3fc1290c7e0fbb1dbcfb8ef8b77b97639.tar.gz
binutils-e7bc7bc3fc1290c7e0fbb1dbcfb8ef8b77b97639.tar.bz2
Mon Jul 22 13:17:06 1996 Richard Henderson <rth@tamu.edu>
* alpha-dis.c (print_insn_alpha): No longer the user-visible print routine. Take new regnames and cpumask arguments. Kill the environment variable nonsense. (print_insn_alpha_osf): New function. Do OSF/1 style regnames. (print_insn_alpha_vms): New function. Do VMS style regnames. * disassemble.c (disassembler): Test bfd flavour to pick between OSF and VMS routines. Default to OSF.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r--opcodes/disassemble.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index b5f646b..53d753f 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -64,7 +64,17 @@ disassembler (abfd)
#endif
#ifdef ARCH_alpha
case bfd_arch_alpha:
- disassemble = print_insn_alpha;
+ switch (bfd_get_flavour (abfd))
+ {
+ case bfd_target_ecoff_flavour:
+ case bfd_target_elf_flavour:
+ default:
+ disassemble = print_insn_alpha_osf;
+ break;
+ case bfd_target_evax_flavour:
+ disassemble = print_insn_alpha_vms;
+ break;
+ }
break;
#endif
/* start-sanitize-arc */