Date: Mon, 19 Mar 2012 03:27:09 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r233159 - head/contrib/gdb/gdb Message-ID: <201203190327.q2J3R9GG049097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Mon Mar 19 03:27:08 2012 New Revision: 233159 URL: http://svn.freebsd.org/changeset/base/233159 Log: fix ABI detection logic: for 64-bit elf objects set default ABI to n64. Modified: head/contrib/gdb/gdb/mips-tdep.c Modified: head/contrib/gdb/gdb/mips-tdep.c ============================================================================== --- head/contrib/gdb/gdb/mips-tdep.c Mon Mar 19 02:10:40 2012 (r233158) +++ head/contrib/gdb/gdb/mips-tdep.c Mon Mar 19 03:27:08 2012 (r233159) @@ -5437,6 +5437,13 @@ mips_gdbarch_init (struct gdbarch_info i } } + /* 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203190327.q2J3R9GG049097>