diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-07-06 23:17:32 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-07-06 23:17:32 +0000 |
commit | 65c11066379230500ce7d9e8c07ea1521f50e3b7 (patch) | |
tree | a734eae066cc87b99f8870646a926763424739f4 /gdb/mips-tdep.c | |
parent | 00373e55b6370c4b8680a76f8e9622ad3606906e (diff) | |
download | gdb-65c11066379230500ce7d9e8c07ea1521f50e3b7.zip gdb-65c11066379230500ce7d9e8c07ea1521f50e3b7.tar.gz gdb-65c11066379230500ce7d9e8c07ea1521f50e3b7.tar.bz2 |
2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>
* mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 88ba0cd..74f9213 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -3549,12 +3549,14 @@ gdb_print_insn_mips (memaddr, info) it's definitely a 16-bit function. Otherwise, we have to just guess that if the address passed in is odd, it's 16-bits. */ if (proc_desc) - info->mach = pc_is_mips16 (PROC_LOW_ADDR (proc_desc)) ? 16 : TM_PRINT_INSN_MACH; + info->mach = pc_is_mips16 (PROC_LOW_ADDR (proc_desc)) ? + bfd_mach_mips16 : TM_PRINT_INSN_MACH; else - info->mach = pc_is_mips16 (memaddr) ? 16 : TM_PRINT_INSN_MACH; + info->mach = pc_is_mips16 (memaddr) ? + bfd_mach_mips16 : TM_PRINT_INSN_MACH; /* Round down the instruction address to the appropriate boundary. */ - memaddr &= (info->mach == 16 ? ~1 : ~3); + memaddr &= (info->mach == bfd_mach_mips16 ? ~1 : ~3); /* Call the appropriate disassembler based on the target endian-ness. */ if (TARGET_BYTE_ORDER == BIG_ENDIAN) |