From 9dae60cc0317e3513440a19431976e25f768427d Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 5 Sep 2008 11:43:10 +0000 Subject: * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch instead of current_gdbarch. * sh64-tdep.c (gdb_print_insn_sh64): Remove. (sh64_gdbarch_init): Install print_insn_sh64 directly. * sh-tdep.c (gdb_print_insn_sh): Remove. (sh_gdbarch_init): Install print_insn_sh directly. * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi from current_gdbarch. (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions. (mips_gdbarch_init): Install them instead of gdb_print_insn_mips depending on mips_abi. --- gdb/m68hc11-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/m68hc11-tdep.c') diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index 16bb243..7bd6e69 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1349,7 +1349,7 @@ m68hc11_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym) static int gdb_print_insn_m68hc11 (bfd_vma memaddr, disassemble_info *info) { - if (gdbarch_bfd_arch_info (current_gdbarch)->arch == bfd_arch_m68hc11) + if (info->arch == bfd_arch_m68hc11) return print_insn_m68hc11 (memaddr, info); else return print_insn_m68hc12 (memaddr, info); -- cgit v1.1