Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: WIP: Register doco
Date: Wed, 24 Jul 2002 22:03:00 -0000	[thread overview]
Message-ID: <np8z40tn5m.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <3D3ED11C.3000906@ges.redhat.com>


Andrew Cagney <ac131313@ges.redhat.com> writes:
> >> Sorry, I'm again lost.  I earlier wrote (note edits):
> >> ``No, ABI.  For instance mipsIII and o32.  The o32 ABI thinks
> >> registers have 32 bits yet the real register has 64 bits.  This gives
> >> two [cooked] views of the same [raw] register.  When o32 debug info
> >> indicates a value in two adjacent [cooked] registers, it is refering
> >> to 32 bit and not 64 bit registers.''
> >> I'm not discussing which of these should be printed since that is
> >> outside of the scope of this discussion.
> > (Sorry, the `what would this print' is a distraction.)
> > Suppose I have a program compiled to the o32 ABI which has a 64-bit
> > variable that the debug info says is in $a0.  I'm running it on a MIPS
> > III machine.  This means that half of my variable is in the low 32
> > bits of $a0, and the the other half is in the low 32 bits of $a1.
> > So, when you say that cooked registers are "ABI registers", are you
> > saying that, in the cooked register set, $a0 and $a1 would be 32-bit
> > registers, even though we're executing a 64-bit instruction set?
> > Having the register sizes disagree with the actual instructions being
> > executed is what seems like a bad idea to me.
> 
> As I pointed out in the above, there are two cooked $a0's.  One is 32
> bits and one is 64 bits.

Wow.  I read what you wrote, but I didn't get that.  So, there are
going to be two cooked register numbers for $a0, depending on whether
one is looking at it from the ABI point of view --- like debug info
does --- or from the ISA point of view.  Is that right?


  reply	other threads:[~2002-07-25  5:03 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-19 17:31 Andrew Cagney
2002-07-19 20:11 ` Jim Blandy
2002-07-20 11:39   ` Andrew Cagney
2002-07-20 11:36     ` Jim Blandy
2002-07-20 13:41       ` Andrew Cagney
2002-07-20 15:26         ` Jim Blandy
2002-07-21  9:41           ` Andrew Cagney
2002-07-21 10:04             ` Daniel Jacobowitz
2002-07-22  9:38               ` Andrew Cagney
2002-07-22 10:30                 ` Daniel Jacobowitz
2002-07-23 16:25             ` Jim Blandy
2002-07-23 17:34               ` Andrew Cagney
2002-07-23 20:45                 ` Jim Blandy
2002-07-24  8:35                   ` Andrew Cagney
2002-07-24 22:08                     ` Jim Blandy
2002-07-25  8:13                       ` Andrew Cagney
2002-07-23 21:17                 ` Jim Blandy
2002-07-24  9:09                   ` Andrew Cagney
2002-07-24 22:03                     ` Jim Blandy [this message]
2002-07-25  8:11                       ` Andrew Cagney
2002-07-22 14:39         ` Mark Kettenis
2002-07-22 14:41         ` Mark Kettenis

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=np8z40tn5m.fsf@zwingli.cygnus.com \
    --to=jimb@redhat.com \
    --cc=ac131313@ges.redhat.com \
    --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