This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]