2000-07-06 Michael Snyder <msnyder@cleaver.cygnus.com>

* mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
This commit is contained in:
Michael Snyder 2000-07-06 23:17:32 +00:00
parent 00373e55b6
commit 65c1106637
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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)