Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: poirierg@gmail.com, Jim Blandy <jimb@red-bean.com>
Cc: gdb@sources.redhat.com
Subject: Re: Setting an SSE register to a certain value
Date: Wed, 28 Dec 2005 04:22:00 -0000	[thread overview]
Message-ID: <uoe31u9zj.fsf@gnu.org> (raw)
In-Reply-To: <8f2776cb0512271615g54aa91a4t3bc89777105d33b7@mail.gmail.com> 	(message from Jim Blandy on Tue, 27 Dec 2005 16:15:59 -0800)

> Date: Tue, 27 Dec 2005 16:15:59 -0800
> From: Jim Blandy <jimb@red-bean.com>
> Cc: gdb@sources.redhat.com
> 
> On 12/27/05, Guillaume POIRIER <poirierg@gmail.com> wrote:
> > I'm trying to find a solution to set an XMM register to a certain value.
> >
> > I've tried
> > set $xmm2 = 0x000000000000000000000000FFFFFFFF
> > but I get the error message: "Invalid cast."
> > and I also tried:
> > set $xmm2 = (unint128) 0x000000000000000000000000FFFFFFFF
> > but I get the message the message "No symbol "uint128" in current context."
> >
> > I've googled around and dig the mailing without finding a solution to
> > this problem.
> 
> If you say "print $xmm", don't you get a structure type?  GDB is
> complaining that it doesn't know how to convert the 128-bit constant
> you wrote to the register's structure type.  Try assigning to the
> individual elements of one of the structure's members.

That is, try this:

  set $xmm2.uint128 = 0x000000000000000000000000FFFFFFFF


  reply	other threads:[~2005-12-28  4:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-27 16:16 Guillaume POIRIER
2005-12-28  0:16 ` Jim Blandy
2005-12-28  4:22   ` Eli Zaretskii [this message]
2005-12-28  8:16     ` Guillaume POIRIER

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=uoe31u9zj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@red-bean.com \
    --cc=poirierg@gmail.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