diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-07-12 07:13:12 -0700 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2015-07-12 07:13:12 -0700 |
commit | 8d6dbeb44ca93b836e3af8f8d3993997bf347112 (patch) | |
tree | a79b5c3b11008212c1cdd49210ffcfffde7c8ab8 /gdb | |
parent | 9394ff46fba5a989d94782db817cc248dac736e9 (diff) | |
download | fsf-binutils-gdb-8d6dbeb44ca93b836e3af8f8d3993997bf347112.zip fsf-binutils-gdb-8d6dbeb44ca93b836e3af8f8d3993997bf347112.tar.gz fsf-binutils-gdb-8d6dbeb44ca93b836e3af8f8d3993997bf347112.tar.bz2 |
Fix GDB breakage due to addition of new nios2 mach types in BFD.
2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
gdb/
* nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
all nios2 mach variants.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nios2-linux-tdep.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5070428..5e687f0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-07-12 Sandra Loosemore <sandra@codesourcery.com> + + * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register + all nios2 mach variants. + 2015-07-10 Kevin Buettner <kevinb@redhat.com> * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead 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 (); } |