This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Setting a floating point register to raw hex value
- From: "Grzegorz Cieslewski" <cieslewski at hcs dot ufl dot edu>
- To: gdb at sourceware dot org
- Date: Fri, 12 Oct 2007 11:29:28 -0400
- Subject: Setting a floating point register to raw hex value
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.