- java.lang.Object
-
- com.ibm.dtfj.corereaders.zos.mvs.RegisterSet
-
public class RegisterSet extends Object
This class represents a set of registers for a failed thread.
-
-
Constructor Summary
Constructors Constructor Description RegisterSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPSW()
Returns the PSW.long
getRegister(int index)
Get the value of the specified register.long
getRegisterAsAddress(int index)
Get the value of the specified register for use as an address.long[]
getRegisters()
Return an array of the register values.void
setPSW(long psw)
Sets the PSW.void
setRegister(int index, long value)
Sets the specified register.void
setWhereFound(String whereFound)
Sets the whereFound string.String
whereFound()
Returns a string indicating where the registers were found.
-
-
-
Method Detail
-
getRegisters
public long[] getRegisters()
Return an array of the register values. XXX I haven't considered 64-bit machines yet - do they use the same number of registers? The values contain what you'd expect, eg getRegisters()[0] contains GPR0 and so on.
-
getRegister
public long getRegister(int index)
Get the value of the specified register.
-
getRegisterAsAddress
public long getRegisterAsAddress(int index)
Get the value of the specified register for use as an address.
-
setRegister
public void setRegister(int index, long value)
Sets the specified register.- Parameters:
index
- the register whose value is to be setvalue
- the value to set it to
-
getPSW
public long getPSW()
Returns the PSW. XXX How big is the PSW on a 64-bit machine?
-
setPSW
public void setPSW(long psw)
Sets the PSW.
-
setWhereFound
public void setWhereFound(String whereFound)
Sets the whereFound string.
-
whereFound
public String whereFound()
Returns a string indicating where the registers were found. This is mainly for debugging purposes.
-
-