Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] mips gdb fails to detect o32
Date: Wed, 07 Aug 2002 18:01:00 -0000	[thread overview]
Message-ID: <20020808010154.GA12160@nevyn.them.org> (raw)
In-Reply-To: <3D51BD8F.F0DEF710@redhat.com>

On Wed, Aug 07, 2002 at 05:38:39PM -0700, Michael Snyder wrote:
> Daniel Jacobowitz wrote:
> > 
> > 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. 
> 
> Really?  How?  It rejects "-mabi=o32".

I believe the GNU tools call it "32".  Yep, that's right.

> > 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.
> 
> Can you be more specific?

See the patch I added recently to recognize the ".mdebug.o32" and
similar sections; GCC emits these in every object file.

> > 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.
> 
> Andrew added code to make it default to n32 in Novermber 2000.
> I wouldn't want to overrule him...   ;-)

N32 makes more sense for IRIX anyway... there must be some marking
difference though.  If N32 is marked and O32 isn't perhaps the default
should change after all.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-08-08  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07 17:42 Michael Snyder
2002-08-07 17:46 ` Daniel Jacobowitz
2002-08-07 17:57   ` Michael Snyder
2002-08-07 18:01     ` Daniel Jacobowitz [this message]
2002-08-07 19:49 ` Andrew Cagney
2002-08-07 20:00   ` Michael Snyder
2002-08-07 20:11     ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020808010154.GA12160@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox