From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 795 invoked by alias); 28 Dec 2005 04:22:44 -0000 Received: (qmail 785 invoked by uid 22791); 28 Dec 2005 04:22:43 -0000 X-Spam-Check-By: sourceware.org Received: from gandalf.inter.net.il (HELO gandalf.inter.net.il) (192.114.186.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Dec 2005 04:22:41 +0000 Received: from nitzan.inter.net.il (nitzan.inter.net.il [192.114.186.20]) by gandalf.inter.net.il (MOS 3.7.1-GA) with ESMTP id HJW47353; Wed, 28 Dec 2005 06:22:01 +0200 (IST) Received: from HOME-C4E4A596F7 (IGLD-80-230-23-196.inter.net.il [80.230.23.196]) by nitzan.inter.net.il (MOS 3.7.2-GA) with ESMTP id CHN84536 (AUTH halo1); Wed, 28 Dec 2005 06:22:00 +0200 (IST) Date: Wed, 28 Dec 2005 04:22:00 -0000 Message-Id: From: Eli Zaretskii To: poirierg@gmail.com, Jim Blandy CC: gdb@sources.redhat.com In-reply-to: <8f2776cb0512271615g54aa91a4t3bc89777105d33b7@mail.gmail.com> (message from Jim Blandy on Tue, 27 Dec 2005 16:15:59 -0800) Subject: Re: Setting an SSE register to a certain value Reply-to: Eli Zaretskii 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/msg00207.txt.bz2 > 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 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