getfpregs (tool command)

Retrieves floating point register contents for a target system thread

Syntax

getfpregs thread

Description

getfpregs sends a message requesting the contents of the floating point registers for the specified target system thread through the dbgif tool and displays the register contents (in hex) on stdout (ordinary shell window).

Before executing this command, you must ensure that the dbgif program is running and that the METHOD environment variable is set to zero to indicate that this is a request for the R4300 CPU. The co-processor does not have floating point registers, so it is inappropriate to set METHOD to 1 (specifying to use the co-processor).

This is accomplished by specifying the following command on the shell:

setenv METHOD 0

If the specified thread is running, the displayed registers will be the contents of the registers at the time the thread was preempted to service the getfpregs request.

Note

In the event of a communications failure, the program will dump core. If this happens, you must remove the core file manually.

Only the 32-bit floating point registers ("float" regs) are displayed. It would be nice to display the 64-bit registers ("double" regs) as well, however, it is not supported at this point.

See Also

dbgif, listthreads

Revision History

1999/04/30 Changed Format