From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21334 invoked by alias); 28 Dec 2005 00:16:04 -0000 Received: (qmail 21311 invoked by uid 22791); 28 Dec 2005 00:16:03 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.196) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Dec 2005 00:16:01 +0000 Received: by zproxy.gmail.com with SMTP id l1so1467469nzf for ; Tue, 27 Dec 2005 16:16:00 -0800 (PST) Received: by 10.36.79.16 with SMTP id c16mr4897854nzb; Tue, 27 Dec 2005 16:15:59 -0800 (PST) Received: by 10.37.2.42 with HTTP; Tue, 27 Dec 2005 16:15:59 -0800 (PST) Message-ID: <8f2776cb0512271615g54aa91a4t3bc89777105d33b7@mail.gmail.com> Date: Wed, 28 Dec 2005 00:16:00 -0000 From: Jim Blandy To: Guillaume POIRIER Subject: Re: Setting an SSE register to a certain value Cc: gdb@sources.redhat.com In-Reply-To: <4e03026a0512270816p2ea883cfj42934c557ec7f4a5@mail.gmail.com> 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> 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/msg00206.txt.bz2 On 12/27/05, Guillaume POIRIER wrote: > I'm trying to find a solution to set an XMM register to a certain value. > > 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 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.