Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: GDB Discussion <gdb@sources.redhat.com>
Subject: Re: nm.h, *-nat.c and multi-arch?
Date: Wed, 04 Jul 2001 10:43:00 -0000	[thread overview]
Message-ID: <20010704104301.A13536@nevyn.them.org> (raw)
In-Reply-To: <3B43404E.6090805@cygnus.com>

Speak of the devil...

On Wed, Jul 04, 2001 at 12:11:58PM -0400, Andrew Cagney wrote:
> 	o	interface code to make
> 		procfs, ptrace, ... work
> 
> 		See below.

What I would actually like to see, as I've mentioned before, would be
the -nat.c and nm.h files shrink but probably not vanish.  This would
let us reuse them in gdbserver.  I'm still not clear on how practical
that is, though.

> 	o	Stuff that should have
> 		been put in the xm file.
> 
> 		I'll pretend this didn't
> 		happen :-)
> 
> 	o	Stuff that should have been
> 		put in a tm file.
> 
> 		Ditto :-)

La de da di da..... nothing to see here, move along.

> The wart?  So far multi-arch has concentrated on problems like:
> 
> 	MIPS2 embedded
> 	MIPS3 embedded
> 
> but has avoided cases such as:
> 
> 	Linux/MIPS native and remote
> 	MIPS embedded
> 	*BSD/MIPS remote
> 
> i.e. OS as well as ISA/ABI as a variant.  For nm.h to be reduced to just 
> _native_ interface support, multi-arch will need to be extended to 
> include this.

Here we are.  As I get further through this port, which I'm actually
probably going to post today, hacks and all, I have been wondering what
it will do to multi-arch.  I don't see how to specify what the default
OS is properly; and worse yet are things like:the ELF header flag
indicating O32 ABI is actually far more recent than the O32 spec, and
may even violate it, so Linux has to assume that unmarked binaries are
O32.  So something like MIPS_DEFAULT_ABI may need to become
multi-arched too.  Etc.

The other thing I have on my plate is cross-platform corefile support. 
I have the BFD side of this approved and mostly committed now.  Which
brings me to core-regset.c.  Is it worth trying to convert all targets
at once, if that's even possible, or should I introduce a parallel file
to replace it?  My general plan is to add a table of (note type, size,
supply function) tuples to the multiarch vector, so that core-regset.c
does not need to use the gdb_gregset_t type.  Attempting to do that
cross is more pain than it's worth, IMO.

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


      parent reply	other threads:[~2001-07-04 10:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-04  9:12 Andrew Cagney
2001-07-04 10:28 ` Eli Zaretskii
2001-07-04 11:36   ` Andrew Cagney
2001-07-04 11:54     ` Eli Zaretskii
2001-07-04 10:43 ` Daniel Jacobowitz [this message]

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=20010704104301.A13536@nevyn.them.org \
    --to=dmj+@andrew.cmu.edu \
    --cc=gdb@sources.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