From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15472 invoked by alias); 12 Oct 2007 15:29:38 -0000 Received: (qmail 15462 invoked by uid 22791); 12 Oct 2007 15:29:38 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 Oct 2007 15:29:33 +0000 Received: by ug-out-1314.google.com with SMTP id o2so701048uge for ; Fri, 12 Oct 2007 08:29:28 -0700 (PDT) Received: by 10.78.142.14 with SMTP id p14mr2407928hud.1192202968240; Fri, 12 Oct 2007 08:29:28 -0700 (PDT) Received: by 10.78.154.10 with HTTP; Fri, 12 Oct 2007 08:29:28 -0700 (PDT) Message-ID: <7aa837f80710120829y33db4c3cya21f6ead14ca56f3@mail.gmail.com> Date: Fri, 12 Oct 2007 15:29:00 -0000 From: "Grzegorz Cieslewski" To: gdb@sourceware.org Subject: Setting a floating point register to raw hex value MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 3f7b70dbb4f176e1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00082.txt.bz2 Does any one know of a way to set a floating point register ($f0) to a arbitrary raw hex value (for example 1) I tried the following. (gdb) set $f0 = 5.0000000000000000e-324 (gdb) p $f0 $1 = -1.5966722476277758e+293 (gdb) set $f0 = 5.0000000000000000e-324 The value of 5.0000000000000000e-324 should correspond to 0x0000000000000001 in raw hex Any ideas? I am using ppc7450 (G4) if that helps.