The following adds OS/ABI handling a'la the ARM and Alpha targets to the SuperH target. Once this is in, I'll be able to commit my NetBSD/sh variant. OK to commit? * sh-tdep.c (sh_abi_names): Declare. (process_note_abi_tag_sections): New function. (get_elfosabi): Ditto. (sh_gdbarch_register_os_abi): Ditto. (sh_dump_tdep): Ditto. (_initialize_sh_tdep): Use gdbarch_register to register sh_gdbarch_init and sh_dump_tdep. * config/sh/tm-sh.h (sh_abi): Declare. (gdbarch_tdep): Add sh_abi and abi_name members. -- -- Jason R. Thorpe