diff options
Diffstat (limited to 'gdb/nios2-linux-tdep.c')
-rw-r--r-- | gdb/nios2-linux-tdep.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/nios2-linux-tdep.c b/gdb/nios2-linux-tdep.c index 0a837b0..68c949a 100644 --- a/gdb/nios2-linux-tdep.c +++ b/gdb/nios2-linux-tdep.c @@ -223,8 +223,14 @@ extern initialize_file_ftype _initialize_nios2_linux_tdep; void _initialize_nios2_linux_tdep (void) { - gdbarch_register_osabi (bfd_arch_nios2, 0, GDB_OSABI_LINUX, - nios2_linux_init_abi); + + const struct bfd_arch_info *arch_info; + + for (arch_info = bfd_lookup_arch (bfd_arch_nios2, 0); + arch_info != NULL; + arch_info = arch_info->next) + gdbarch_register_osabi (bfd_arch_nios2, arch_info->mach, + GDB_OSABI_LINUX, nios2_linux_init_abi); initialize_tdesc_nios2_linux (); } |