Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Setting a floating point register to raw hex value
@ 2007-10-12 15:29 Grzegorz Cieslewski
  2007-10-18 19:38 ` Grzegorz Cieslewski
  0 siblings, 1 reply; 8+ messages in thread
From: Grzegorz Cieslewski @ 2007-10-12 15:29 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-22 16:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12 15:29 Setting a floating point register to raw hex value Grzegorz Cieslewski
2007-10-18 19:38 ` Grzegorz Cieslewski
2007-10-18 20:16   ` Thiago Jung Bauermann
2007-10-18 21:44     ` Grzegorz Cieslewski
2007-10-18 21:54     ` Daniel Jacobowitz
2007-10-19 19:48       ` Thiago Jung Bauermann
2007-10-19 20:15         ` Daniel Jacobowitz
2007-10-22 16:22         ` Grzegorz Cieslewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox