diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cris-tdep.c | 19 |
2 files changed, 6 insertions, 18 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ce3f317..b7ce729 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * cris-tdep.c (cris_gdbarch_init): Remove check for + info.byte_order and force it to BFD_ENDIAN_LITTLE. + 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> * corelow.c (get_core_register_section): Check for regset diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index c2ce338..aefd44a 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -4022,31 +4022,14 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* No matching architecture was found. Create a new one. */ tdep = XNEW (struct gdbarch_tdep); + info.byte_order = BFD_ENDIAN_LITTLE; gdbarch = gdbarch_alloc (&info, tdep); tdep->cris_version = usr_cmd_cris_version; tdep->cris_mode = usr_cmd_cris_mode; tdep->cris_dwarf2_cfi = usr_cmd_cris_dwarf2_cfi; - /* INIT shall ensure that the INFO.BYTE_ORDER is non-zero. */ - switch (info.byte_order) - { - case BFD_ENDIAN_LITTLE: - /* Ok. */ - break; - - case BFD_ENDIAN_BIG: - /* 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")); - } - set_gdbarch_return_value (gdbarch, cris_return_value); - set_gdbarch_sp_regnum (gdbarch, 14); /* Length of ordinary registers used in push_word and a few other |