getsregs (tool command)

Retrieves the scalar register contents from the RCP co-processor


getsregs thread


getsregs sends a message requesting the contents of the co-processor scalar registers from the target system by way of the dbgif tool and then displays the register contents (in hex) on stdout. The contents of certain CP0 registers (such as the program counter) are also displayed. The thread argument is required, but meaningless. Choose your favorite integer.

Before executing this command, you must ensure that the dbgif program is running and that the METHOD environment variable is set. Because the target system ignores the specified value, it does not need to be changed to the "correct" value of one, indicating that this is a request for the co-processor. The environment variable does need to be set so that a value can be supplied as part of the request packet.

In csh, this is accomplished by specifying:

setenv METHOD 1 

If the coprocessor is running, the request will probably fail (as it should).


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

The thread argument should not be required.

The heading says "General Registers"; it should say "Scalar Registers."

See Also


Revision History

1999/04/30 Changed Format