* mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
authorDaniel Jacobowitz <drow@false.org>
Wed, 15 Mar 2006 16:59:54 +0000 (16:59 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 15 Mar 2006 16:59:54 +0000 (16:59 +0000)
gdb/ChangeLog
gdb/mips-tdep.c

index 41aeb00546d1ff5a97c599d69d66ecb7e529450b..db6d6be3a80c761b68dc4dea6df1e88bec140649 100644 (file)
@@ -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):
index 8ea209f05b0e5a868c1cd1eced514603d8798ad6..880dfcc34946c124a5abfc5c4d61ab5c6a8479b9 100644 (file)
@@ -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);
This page took 0.031446 seconds and 4 git commands to generate.