This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] mips gdb fails to detect o32


On Wed, Aug 07, 2002 at 05:23:43PM -0700, Michael Snyder wrote:

Well, I just discovered that gdb is failing to detect the o32 abi
when debugging the output of the native Irix compiler. This patch
seems to help.

The idea here is, if it's not n32, then if it is MIPS_ARCH_2,
then it must be o32. However, I've no idea if that's right --
I just know it works so far as I've been able to test it.

Unfortunately, I haven't been able to test it against EABI, and I haven't been able to test it against gcc, because gcc
doesn't generate o32.

GCC does generate O32.  GNU binutils won't use the ARCH/ABI bits in the
ELF header in a lot of cases, though; and it emits a better way to
identify the ABI.

I don't think keying off MIPS II makes a heck of a lot of sense here...
depending on what SGI's tools put out you might want to default to O32
if no ABI tag bits are present, but that's a little shadier.
Um, won't the final:

	if (mips_abi == MIPS_ABI_UNKNOWN)
	  mips_abi = MIPS_ABI_032;

kick in?

Andrew





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]