Elena Zannoni wrote: > We still need a gdb_print_insn_sh function, because the user can > set the target endiannes from the command line overwriting the architecture > endiannes. > So we need to leave in there the check of the TARGET_BYTE_ORDER. > I think something like this: > gdb_print_insn_sh (bfd_vma address, disassemble_info *info) > { > if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) > BFD_ENDIAN_BIG; > else > info->endian = BFD_ENDIAN_LITTLE; > return print_insn_sh (address, info); > } I have used info->endian = TARGET_BYTE_ORDER; I hope there isn't any hidden problem with that. -- -------------------------- SuperH 2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ T:+44 1454 462330