Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Andreas Schwab <schwab@suse.de>, Michal Ludvig <mludvig@suse.cz>,
	gdb-patches@sources.redhat.com
Subject: Re: [RFA] Re: x86-64-tdep.h cleanup
Date: Wed, 06 Mar 2002 10:26:00 -0000	[thread overview]
Message-ID: <3C865F64.1040302@cygnus.com> (raw)
In-Reply-To: <1020306173521.ZM23202@localhost.localdomain>

> On Mar 6,  6:24pm, Andreas Schwab wrote:
> 
> 
>> Michal Ludvig <mludvig@suse.cz> writes:
>> 
>> |> Andreas Schwab wrote:
>> |> > I think the registration of the Linux specific gdbarch functions should be
>> |> > moved to x86-64-linux-tdep.c.
>> |> > |> It seems reasonable. Perhaps I can do it like in the attachment?
>> 
>> No, x86-64-tdep.c should not have _any_ reference to
>> x86-64-linux-tdep.c.  The former must be usable without the latter.
> 
> 
> How is that possible though?  I've studied this problem for other
> targets and have (up to now, anyway) concluded that the main tdep.c
> file is going to need to know about the (OS or ABI) variants in some
> fashion.

I think AndreasS is correct.  x86-64-tdep.c only contains ISA and ABI 
stuff while x86-64-linux.c contains GNU/Linux specific OS functions.

Two problems are tripping up the theory.  First is that gdbarch doesn't 
currently groak this arangement - x86-64-linux-tdep is derived (correct 
O-O word?) from x86-64-tdep.  The second problem is that gdbarch doesn't 
handle the concept of OS variants within an ISA/ABI.

Up until now people have side stepped the issue by retaining macro 
definitions in config/*/tm-linux.h.  I'm personally ok with this - it 
retains the status quo and at least manages to retain the separation.

enjoy,
Andrew


  reply	other threads:[~2002-03-06 18:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-05  7:56 Michal Ludvig
2002-03-05  8:30 ` Kevin Buettner
2002-03-05 23:53   ` Andreas Jaeger
2002-03-06  2:00   ` Michal Ludvig
2002-03-06  9:30     ` Kevin Buettner
2002-03-07  5:30       ` [patch] " Michal Ludvig
2002-03-06  3:09 ` Andreas Schwab
2002-03-06  8:46   ` [RFA] " Michal Ludvig
2002-03-06  9:24     ` Andreas Schwab
2002-03-06  9:35       ` Kevin Buettner
2002-03-06 10:26         ` Andrew Cagney [this message]
2002-03-06 11:02           ` Kevin Buettner

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=3C865F64.1040302@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=mludvig@suse.cz \
    --cc=schwab@suse.de \
    /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