* gdb won't recognize the N64 ABI
@ 2002-10-01 17:57 Alexandre Oliva
2002-10-01 18:21 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Oliva @ 2002-10-01 17:57 UTC (permalink / raw)
To: gdb-patches, kevinb
[-- Attachment #1: Type: text/plain, Size: 294 bytes --]
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?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mips-mdebug-abi64.patch --]
[-- Type: text/x-patch, Size: 830 bytes --]
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;
[-- Attachment #3: Type: text/plain, Size: 289 bytes --]
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: gdb won't recognize the N64 ABI
2002-10-01 17:57 gdb won't recognize the N64 ABI Alexandre Oliva
@ 2002-10-01 18:21 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2002-10-01 18:21 UTC (permalink / raw)
To: Alexandre Oliva; +Cc: gdb-patches, kevinb
> 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?
Yes, and yes.
Andrew
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-02 1:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 17:57 gdb won't recognize the N64 ABI Alexandre Oliva
2002-10-01 18:21 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox