Top Description Methods
sun.jvm.hotspot.debugger

public Interface ThreadContext

Known Direct Implementers
sun.jvm.hotspot.debugger.aarch64.AARCH64ThreadContext, sun.jvm.hotspot.debugger.amd64.AMD64ThreadContext, sun.jvm.hotspot.debugger.ppc64.PPC64ThreadContext, sun.jvm.hotspot.debugger.riscv64.RISCV64ThreadContext, sun.jvm.hotspot.debugger.x86.X86ThreadContext
Imports
sun.jvm.hotspot.debugger.cdbg.*

This is a placeholder interface for a thread's context, containing only integer registers (no floating-point ones). What it contains is platform-dependent. Not all registers are guaranteed to be present in the context or read from the target process in all situations. However, the routines in it are exposed to allow platform-independent iteration.

Method Summary

Modifier and TypeMethod and Description
public int
getNumRegisters()

Number of integer registers in the context

public long
getRegister(int index)

Get the value of the specified register (0..getNumRegisters() - 1)

public Address
getRegisterAsAddress(int index)

Get the value of the specified register (0..getNumRegisters() - 1) as an Address

public String
getRegisterName(int i)

Get the name of the specified register (0..getNumRegisters() - 1)

public CFrame
public void
setRegister(int index, long value)

Set the value of the specified register (0..getNumRegisters() - 1)

public void
setRegisterAsAddress(int index, Address value)

Set the value of the specified register (0..getNumRegisters() - 1) as an Address

Method Detail

getNumRegistersback to summary
public int getNumRegisters()

Number of integer registers in the context

getRegisterback to summary
public long getRegister(int index)

Get the value of the specified register (0..getNumRegisters() - 1)

getRegisterAsAddressback to summary
public Address getRegisterAsAddress(int index)

Get the value of the specified register (0..getNumRegisters() - 1) as an Address

getRegisterNameback to summary
public String getRegisterName(int i)

Get the name of the specified register (0..getNumRegisters() - 1)

getTopFrameback to summary
public CFrame getTopFrame(Debugger dbg)
setRegisterback to summary
public void setRegister(int index, long value)

Set the value of the specified register (0..getNumRegisters() - 1)

setRegisterAsAddressback to summary
public void setRegisterAsAddress(int index, Address value)

Set the value of the specified register (0..getNumRegisters() - 1) as an Address