aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-07-06 23:17:32 +0000
committerMichael Snyder <msnyder@vmware.com>2000-07-06 23:17:32 +0000
commit65c11066379230500ce7d9e8c07ea1521f50e3b7 (patch)
treea734eae066cc87b99f8870646a926763424739f4
parent00373e55b6370c4b8680a76f8e9622ad3606906e (diff)
downloadgdb-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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/mips-tdep.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fab0c16..51f9c19 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>
+
+ * mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
+
2000-07-06 Christopher Faylor <cgf@cygnus.com>
* infcmd.c (attach_command): Move "stop_soon_quietly" setting
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)