From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9113 invoked by alias); 28 Dec 2005 08:16:50 -0000 Received: (qmail 9106 invoked by uid 22791); 28 Dec 2005 08:16:49 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.205) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Dec 2005 08:16:46 +0000 Received: by zproxy.gmail.com with SMTP id 40so1396226nzk for ; Wed, 28 Dec 2005 00:16:44 -0800 (PST) Received: by 10.65.52.5 with SMTP id e5mr690627qbk; Wed, 28 Dec 2005 00:16:44 -0800 (PST) Received: by 10.64.148.19 with HTTP; Wed, 28 Dec 2005 00:16:44 -0800 (PST) Message-ID: <4e03026a0512280016y45dbee0evbc4a6b63450d831c@mail.gmail.com> Date: Wed, 28 Dec 2005 08:16:00 -0000 From: Guillaume POIRIER To: Jim Blandy , gdb@sources.redhat.com Subject: Re: Setting an SSE register to a certain value In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4e03026a0512270816p2ea883cfj42934c557ec7f4a5@mail.gmail.com> <8f2776cb0512271615g54aa91a4t3bc89777105d33b7@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00208.txt.bz2 Hi, On 12/28/05, Eli Zaretskii wrote: > > Date: Tue, 27 Dec 2005 16:15:59 -0800 > > From: Jim Blandy > > Cc: gdb@sources.redhat.com > > > > On 12/27/05, Guillaume POIRIER wrote: > > > I'm trying to find a solution to set an XMM register to a certain val= ue. > > > > > > I've tried > > > set $xmm2 =3D 0x000000000000000000000000FFFFFFFF > > > but I get the error message: "Invalid cast." > > > and I also tried: > > > set $xmm2 =3D (unint128) 0x000000000000000000000000FFFFFFFF > > > but I get the message the message "No symbol "uint128" in current con= text." > > > > > > 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? Yes, I do. > > 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 =3D 0x000000000000000000000000FFFFFFFF Thanks you so much! That worked beautifully. I hope this information can be added to your documentation as this will probably come in handy to other people, don't you think? :-) Guillaume -- Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov (1920 - 1992)