2006-10-08 Paul Brook <paul@codesourcery.com>
[binutils-gdb.git] / gdb / amd64-tdep.c
index 1bea29740b37b0877130996ecddce1690ccdcda5..b39c839e2aa2bd2ac2dc701f28e3925ca27d778e 100644 (file)
@@ -121,7 +121,7 @@ static struct amd64_register_info const amd64_register_info[] =
   { "xmm13", &i386_sse_type },
   { "xmm14", &i386_sse_type },
   { "xmm15", &i386_sse_type },
-  { "mxcsr", &builtin_type_int32 }
+  { "mxcsr", &i386_mxcsr_type }
 };
 
 /* Total number of registers.  */
@@ -129,7 +129,7 @@ static struct amd64_register_info const amd64_register_info[] =
 
 /* Return the name of register REGNUM.  */
 
-static const char *
+const char *
 amd64_register_name (int regnum)
 {
   if (regnum >= 0 && regnum < AMD64_NUM_REGS)
@@ -141,7 +141,7 @@ amd64_register_name (int regnum)
 /* Return the GDB type object for the "standard" data type of data in
    register REGNUM. */
 
-static struct type *
+struct type *
 amd64_register_type (struct gdbarch *gdbarch, int regnum)
 {
   gdb_assert (regnum >= 0 && regnum < AMD64_NUM_REGS);
@@ -404,7 +404,7 @@ amd64_classify (struct type *type, enum amd64_reg_class class[2])
      range types, used by languages such as Ada, are also in the INTEGER
      class.  */
   if ((code == TYPE_CODE_INT || code == TYPE_CODE_ENUM
-       || code == TYPE_CODE_RANGE
+       || code == TYPE_CODE_BOOL || code == TYPE_CODE_RANGE
        || code == TYPE_CODE_PTR || code == TYPE_CODE_REF)
       && (len == 1 || len == 2 || len == 4 || len == 8))
     class[0] = AMD64_INTEGER;