From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15275 invoked by alias); 9 May 2005 16:43:25 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14749 invoked from network); 9 May 2005 16:42:53 -0000 Received: from unknown (HELO pop04.mail.atl.earthlink.net) (207.69.200.28) by sourceware.org with SMTP; 9 May 2005 16:42:53 -0000 Received: from h-68-164-105-252.dnvtco56.dynamic.covad.net ([68.164.105.252]) by pop04.mail.atl.earthlink.net with esmtp (Exim 3.36 #10) id 1DVBLI-0003Ds-00 for gdb@sources.redhat.com; Mon, 09 May 2005 12:42:52 -0400 Subject: Viewing xmm registers on x86-64 From: Tres Melton To: gdb@sources.redhat.com Content-Type: text/plain Date: Mon, 09 May 2005 16:43:00 -0000 Message-Id: <1115656969.10417.42.camel@thor.tres.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-05/txt/msg00114.txt.bz2 My apologies if this matter is covered in the manuals or somewhere else but I have spent hours googling for the solution. I have found many compliants but no solutions. I am trying to port an application that uses MMX/SSE to the AMD64 platform and I cannot look at the xmm registers in any way that makes sense. gdb insists on displaying the values as floats. I know that the registers that AMD64 uses for x87 and MMX/SSE instructions are the same but nothing in my program uses floating point math. When looking I get: (gdb) p /x $xmm4 $9 = {f = {0x0, 0x0, 0x0, 0x0}} (gdb) p $xmm4 $10 = {f = {4.48415509e-44, 0, 0, 0}} Is there some way to get the hexi-decimal values of these registers? Thanks much, -- Tres