[PATCH] Don't clobber info->mach in gdb_print_insn_mips
Fred Fish
fnf@intrinsity.com
Tue Jun 24 00:51:00 GMT 2003
> So you're ok if I delete that bit of gdb_print_insn_mips?
Works for me, though I assume that it was put there for a
reason. Perhaps a better fix is something like:
if (proc_desc)
{
if (pc_is_mips16 (PROC_LOW_ADDR (proc_desc))
info->mach = bfd_mach_mips16;
}
else
{
if (pc_is_mips16 (memaddr))
info->mach = bfd_mach_mips16;
}
which would leave info->mach alone unless pc_is_mips16 is true.
-Fred
More information about the Gdb-patches
mailing list