This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Setting an SSE register to a certain value


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]