Re: [PATCH] mips n64 support, part 1

Kevin Buettner
2002-07-31T19:10:26Z

On Jul 31, 11:56am, Kevin Buettner wrote:

> On Jul 31, 2:28pm, Daniel Jacobowitz wrote:
>
> > Does mips_find_abi_section need another case?
>
> Hmm. I think it probably will. For the time being, I'm testing on
> Irix and I don't see any .mdebug sections. I.e, the test that I added
> gets the job done for the binaries that I'm working with.
>
> > I believe GCC will write
> > out ".mdebug.abiN64", although I'm not 100% sure that I have the string
> > right.
>
> I've asked Eric Christopher. He says that ".mdebug.abiN64" looks
> right. I'll submit a patch which adds this string.

Here it is (committed)...

* mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
test. (Thanks to Daniel Jacobowitz.)

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.82
diff -u -p -r1.82 mips-tdep.c
--- mips-tdep.c 31 Jul 2002 18:13:24 -0000 1.82
+++ mips-tdep.c 31 Jul 2002 19:03:07 -0000
@@ -4252,6 +4252,8 @@ 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)
+ *abip = MIPS_ABI_N64;
else if (strcmp (name, ".mdebug.abiO64") == 0)
*abip = MIPS_ABI_O64;
else if (strcmp (name, ".mdebug.eabi32") == 0)