From 65c11066379230500ce7d9e8c07ea1521f50e3b7 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 6 Jul 2000 23:17:32 +0000 Subject: [PATCH] 2000-07-06 Michael Snyder * mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate. --- gdb/ChangeLog | 4 ++++ gdb/mips-tdep.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fab0c162e2..51f9c19eaf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-07-06 Michael Snyder + + * mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate. + 2000-07-06 Christopher Faylor * infcmd.c (attach_command): Move "stop_soon_quietly" setting diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 88ba0cddc8..74f92139d6 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)