}
int
-print_insn (memaddr, stream)
- CORE_ADDR memaddr;
- GDB_FILE *stream;
+gdb_print_insn_h8300 (memaddr, info)
+ bfd_vma memaddr;
+ disassemble_info *info;
{
- disassemble_info info;
- GDB_INIT_DISASSEMBLE_INFO(info, stream);
if (h8300hmode)
- return print_insn_h8300h (memaddr, &info);
+ return print_insn_h8300h (memaddr, info);
else
- return print_insn_h8300 (memaddr, &info);
+ return print_insn_h8300 (memaddr, info);
}
/* Given a GDB frame, determine the address of the calling function's frame.
struct frame_saved_regs fsr;
struct frame_info *frame = get_current_frame ();
- fi = get_frame_info (frame);
get_frame_saved_regs (frame, &fsr);
for (regnum = 0; regnum < 8; regnum++)
}
}
+void
+_initialize_h8300_tdep ()
+{
+ tm_print_insn = gdb_print_insn_h8300;
+}