This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
gdb won't recognize the N64 ABI
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gdb-patches at sources dot redhat dot com, kevinb at redhat dot com
- Date: 01 Oct 2002 21:57:44 -0300
- Subject: gdb won't recognize the N64 ABI
- Organization: GCC Team, Red Hat
The code that checks for an .mdebug.<abi_string> section to detect the
ABI used by an executable uses the wrong string to detect the N64
ABI. The section name emitted by GCC for the N64 abi is
.mdebug.abi64, not .mdebug.abiN64. This problem is present in the 5.3
branch too. Ok to install?
Index: gdb/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
of the section for the N64 ABI, fixed.
Index: gdb/mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.119
diff -u -p -r1.119 mips-tdep.c
--- gdb/mips-tdep.c 24 Aug 2002 00:21:35 -0000 1.119
+++ gdb/mips-tdep.c 2 Oct 2002 00:54:02 -0000
@@ -5547,7 +5547,7 @@ mips_find_abi_section (bfd *abfd, asecti
*abip = MIPS_ABI_O32;
else if (strcmp (name, ".mdebug.abiN32") == 0)
*abip = MIPS_ABI_N32;
- else if (strcmp (name, ".mdebug.abiN64") == 0)
+ else if (strcmp (name, ".mdebug.abi64") == 0)
*abip = MIPS_ABI_N64;
else if (strcmp (name, ".mdebug.abiO64") == 0)
*abip = MIPS_ABI_O64;
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer