Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Richard.Earnshaw@arm.com, Elena Zannoni <ezannoni@redhat.com>,
	gdb@sources.redhat.com
Subject: Re: read_register_byte can't work with pseudo-reg model
Date: Fri, 17 May 2002 07:51:00 -0000	[thread overview]
Message-ID: <200205171450.PAA07950@cam-mail2.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Fri, 17 May 2002 14:13:50 BST." <200205171313.OAA26418@cam-mail2.cambridge.arm.com>


rearnsha@arm.com said:
> Would the following tweak be acceptable?  That is, only do the update
> if the register has a name.

>   else if (REGISTER_NAME (regnum) != NULL && *REGISTER_NAME (regnum)
> != '\0')
>     {
>       /* Is this register completely within the range the user is
> writing?  */
>       if (myregstart <= regstart && regend <= myregend)
>         write_register_gen (regnum, myaddr + (regstart - myregstart));

>       /* The register partially overlaps the range being written.  */
>       else
>         { 



I've just noticed that read_register_bytes is doing almost exactly this.  
Why do the two differ?

R.


      reply	other threads:[~2002-05-17 14:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-15  9:52 Richard Earnshaw
2002-05-15 12:43 ` Andrew Cagney
2002-05-16  5:19   ` Richard Earnshaw
2002-05-16  6:41     ` Andrew Cagney
2002-05-16  6:48       ` Richard Earnshaw
2002-05-16 12:08         ` Andrew Cagney
2002-05-16  8:36       ` Richard Earnshaw
2002-05-16 15:29         ` Andrew Cagney
2002-05-17  6:14           ` Richard Earnshaw
2002-05-17  7:51             ` Richard Earnshaw [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=200205171450.PAA07950@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=ac131313@cygnus.com \
    --cc=ezannoni@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