*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / m88k-tdep.c
index 195722b2254404d9be523b1317db3bbd7a8738ca..86ca0982bfe9cae8e3602b7daba195c5c7f3a55a 100644 (file)
@@ -39,6 +39,19 @@ void frame_find_saved_regs ();
 
 int target_is_m88110 = 0;
 
+/* The type of a register.  */
+struct type *
+m88k_register_type (int regnum)
+{
+  if (regnum >= XFP_REGNUM)
+    return builtin_type_m88110_ext;
+  else if (regnum == PC_REGNUM || regnum == FP_REGNUM || regnum == SP_REGNUM)
+    return builtin_type_void_func_ptr;
+  else
+    return builtin_type_int32;
+}
+
+
 /* The m88k kernel aligns all instructions on 4-byte boundaries.  The
    kernel also uses the least significant two bits for its own hocus
    pocus.  When gdb receives an address from the kernel, it needs to
This page took 0.023893 seconds and 4 git commands to generate.