+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
+ order is BFD_ENDIAN_BIG or if the cris version is unsupported.
+
2016-03-09 Pedro Alves <palves@redhat.com>
* doublest.c: Extend comments.
break;
case BFD_ENDIAN_BIG:
- internal_error (__FILE__, __LINE__,
- _("cris_gdbarch_init: big endian byte order in info"));
- break;
-
+ /* Cris is always little endian, but the user could have forced
+ big endian with "set endian". */
+ return 0;
+
default:
internal_error (__FILE__, __LINE__,
_("cris_gdbarch_init: unknown byte order in info"));
case 8:
case 9:
/* Old versions; not supported. */
- internal_error (__FILE__, __LINE__,
- _("cris_gdbarch_init: unsupported CRIS version"));
- break;
+ return 0;
case 10:
case 11:
break;
default:
- internal_error (__FILE__, __LINE__,
- _("cris_gdbarch_init: unknown CRIS version"));
+ /* Unknown version. */
+ return 0;
}
/* Dummy frame functions (shared between CRISv10 and CRISv32 since they