Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: Jason R Thorpe <thorpej@wasabisystems.com>,
	gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Don't complain about unknown OSABI
Date: Mon, 19 Aug 2002 09:15:00 -0000	[thread overview]
Message-ID: <20020819161543.GA10137@nevyn.them.org> (raw)
In-Reply-To: <3D5FCE6A.9080308@ges.redhat.com>

On Sun, Aug 18, 2002 at 12:42:18PM -0400, Andrew Cagney wrote:
> >On Sun, Aug 18, 2002 at 11:41:01AM -0400, Andrew Cagney wrote:
> >
> >>Hello,
> >>
> >>The attached patch removes the warning message that is printed when the 
> >>OSABI is unknown (all the sniffers failed).
> >>
> >>When debugging an embedded executable, there is no OSABI info.  Hence I 
> >>don't think the warning should be issued.  This can be seen when 
> >>debugging a GCC created, mips-elf executable.
> >>
> >>thoughts?
> >>Andrew
> >
> >
> >I like it.  I asked for this change about two months ago when I noticed
> >it on mips-elf.  And there's a typo in the message you're removing,
> >too.
> 
> >[On the related hand, we just had some reports about a case where the OS
> >ABI is isn't detected (on uClibc) - do you think a (configure.tgt based
> >or *.mt based rather than in a header, I think) way to specify the
> >default OS ABI based on the target triplet would be appropriate?
> 
> I know.  Being able to print the OSABI would help (set/show abi).

Yes.  Did you look at the patch posted two or three days ago to add
set/show commands?

Actually, as he probably doesn't have copyright papers on file, I may
whip something equivalent together today.

> I think it should ask BFD.  BFD can then go and look at the target 
> tuple. That would mean that BFD and GDB are ``on the same page''.   See 
> the hacks I've got GDB pulling to figure out the default architecture.

This doesn't make sense to me.  The different is that BFD and GDB both
have a notion of architecture; but BFD has no notion of OSABI.  The
distinguishing markers we use come from the system libraries as often
as not.

My suggestion:  First we'd add set/show osabi, with settings for each
(known?  Registered?  I think registered.) OSABI.  Then it would also
have "default" and "auto".  The difference is that auto would use the
detection mechanism and fall back to default if necessary, and default
would be fixed.  Then we'd set the default in one of two ways:

 - Specify the default value in configure.tgt
 - Do some analysis of the target triplet in osabi.c

I'm inclined to go with a list of registered OSABI's, and to set the
default at configure time.  How's that sound?


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-08-19 16:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-18  8:41 Andrew Cagney
2002-08-18  8:49 ` Daniel Jacobowitz
2002-08-18  8:54   ` Jason R Thorpe
2002-08-18  9:42   ` Andrew Cagney
2002-08-19  9:15     ` Daniel Jacobowitz [this message]
2002-08-19 16:03       ` Andrew Cagney
2002-08-19 16:15         ` Jason R Thorpe
2002-08-19 18:55         ` Daniel Jacobowitz
2002-08-20  9:03           ` Andrew Cagney
2002-08-20  9:11             ` Daniel Jacobowitz
2002-08-21 10:04               ` Andrew Cagney
2002-08-21 10:08                 ` Daniel Jacobowitz
2002-08-21 10:11                   ` Jason R Thorpe
2002-08-21 13:26                     ` Andrew Cagney
2002-08-21 13:38                       ` Daniel Jacobowitz
2002-08-23  6:07                       ` Richard Earnshaw
2002-08-20  9:22             ` Jason R Thorpe
2002-08-20  9:25               ` Jason R Thorpe
2002-08-18  8:51 ` Jason R Thorpe
2002-08-18  8:52 ` Elena Zannoni
2002-08-18 11:01 ` 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=20020819161543.GA10137@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=thorpej@wasabisystems.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