Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa:i386] Add mmx registers
Date: Tue, 13 Aug 2002 15:21:00 -0000	[thread overview]
Message-ID: <3D59864C.7080704@ges.redhat.com> (raw)
In-Reply-To: <200208132210.g7DMA1bT034834@elgar.kettenis.dyndns.org>

>    Date: Tue, 13 Aug 2002 17:55:33 -0400
>    From: Andrew Cagney <ac131313@ges.redhat.com>
> 
>    >    +  set_gdbarch_pseudo_register_read (gdbarch, i386_pseudo_register_read);
>    >    +  set_gdbarch_pseudo_register_write (gdbarch, i386_pseudo_register_write);
>    > 
>    > changes the i386 target's register cache from "legacy" to "new".  This
>    > means that there isn't room for the pseudo registers in
>    > register_valid_p, yet registers_changed() tries to frob the entries
>    > for the pseudo registers.
>    > 
>    > I don't see an obvious way to fix this.  Any bright ideas Andrew?
> 
>    Hmm, yes.  It should be clearing:
> 	   [0 .. current_regcache->descr->nr_raw_registers)
> 
> Clearing the pseudo registers isn't necessary on targets that still
> use the legacy stuff?

Shh!  nr_raw_registers == number of raw registers in the register cache 
== NUM_REGS + NUM_PSEUDO_REGS on legacy targets.  Just don't tell anyone 
M'kay ;-)

   /* FIXME: cagney/2002-05-11: Shouldn't be including pseudo-registers
      in the register buffer.  Unfortunatly some architectures do.  */
   descr->nr_cooked_registers = NUM_REGS + NUM_PSEUDO_REGS;
   descr->nr_raw_registers = descr->nr_cooked_registers;
   descr->sizeof_raw_register_valid_p = descr->nr_cooked_registers;

Andrew



      reply	other threads:[~2002-08-13 22:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-10 16:58 Andrew Cagney
2002-08-12 11:10 ` Mark Kettenis
2002-08-12 12:00   ` Andrew Cagney
2002-08-13  7:35     ` Andrew Cagney
2002-08-13 14:39       ` Mark Kettenis
2002-08-13 14:55         ` Andrew Cagney
2002-08-13 15:03           ` Andrew Cagney
2002-08-13 15:10           ` Mark Kettenis
2002-08-13 15:21             ` Andrew Cagney [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=3D59864C.7080704@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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