Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE toregister_size
Date: Mon, 06 May 2002 17:17:00 -0000	[thread overview]
Message-ID: <3CD71D30.7000506@cygnus.com> (raw)
In-Reply-To: <3CD71654.7904493A@redhat.com>

> Andrew Cagney wrote:
> 
>> 
>> Hello,
>> 
>> For most architectures.  The relationship:
>> 
>>         REGISTER_VIRTUAL_SIZE(N)
>>         == REGISTER_RAW_SIZE(N)
>>         == TYPE_LENGTH(REGISTER_VIRTUAL_TYPE(N)
>> 
>> (the exception is the @$(*&@(^$*&^!@ MIPS ...). 
> 
> 
> Surely this is also true for x87 regs?

Nope!  The i386 register is 80 bits.  When pushed on the stack, extra 
space is reserved to make it 4 byte aligned (96 bit) but the extra two 
bytes at the end don't get used.


>> Given this, the
>> attached patch changes the architecture vector so that it defaults both
>> to the register's type size.
>> 
>> I think this is the logical conclusion to MichaelS's earlier patch that
>> provided defaults to each.
>> 
>> Thoughts?  I'll look to commit it in a week.
> 
> 
> If I understand it, it won't affect any target that explicitly 
> sets these methods -- in which case I agree with the change.

Yes, it isn't ment to affect existing targets.  Up until now you were 
required to set the methods as otherwize GDB wouldn't build/run.

thanks for the comments,
Andrew




  reply	other threads:[~2002-05-07  0:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-05 19:28 [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size Andrew Cagney
2002-05-05 22:17 ` Eli Zaretskii
2002-05-06 13:38 ` Kevin Buettner
2002-05-06 17:01 ` [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE toregister_size Michael Snyder
2002-05-06 17:17   ` Andrew Cagney [this message]
2002-05-07  3:21 ` [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size Richard Earnshaw
2002-05-07  8:50   ` Andrew Cagney
2002-05-07  9:04     ` Richard Earnshaw
2002-05-07 10:33       ` Andrew Cagney
2002-05-08  6:55         ` Richard Earnshaw
2002-05-08  6:58           ` Andrew Cagney
2002-05-08  7:01             ` Richard Earnshaw
2002-05-11 19:03 ` 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=3CD71D30.7000506@cygnus.com \
    --to=ac131313@cygnus.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