mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 04:53:56 +08:00
* mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
This commit is contained in:
parent
5b65210297
commit
26c53e508c
@ -1,3 +1,7 @@
|
||||
2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
|
||||
|
||||
2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
|
||||
|
@ -4764,6 +4764,13 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
}
|
||||
}
|
||||
|
||||
/* Default 64-bit objects to N64 instead of O32. */
|
||||
if (found_abi == MIPS_ABI_UNKNOWN
|
||||
&& info.abfd != NULL
|
||||
&& bfd_get_flavour (info.abfd) == bfd_target_elf_flavour
|
||||
&& elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64)
|
||||
found_abi = MIPS_ABI_N64;
|
||||
|
||||
if (gdbarch_debug)
|
||||
fprintf_unfiltered (gdb_stdlog, "mips_gdbarch_init: found_abi = %d\n",
|
||||
found_abi);
|
||||
|
Loading…
Reference in New Issue
Block a user