APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.debugger.cdbg.basic

public Class BasicDebugEvent

extends Object
implements DebugEvent
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.debugger.cdbg.DebugEvent
Imports
sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.debugger.cdbg.*

Field Summary

Modifier and TypeField and Description
private Address
private String
private Address
private ThreadProxy
private DebugEvent.Type
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Address
getAddress()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getAddress.

For ACCESS_VIOLATION events, returns the address at which the fault occurred.

public Address
getPC()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getPC.

For BREAKPOINT, SINGLE_STEP, and ACCESS_VIOLATION events, returns the program counter at which the event occurred.

public ThreadProxy
getThread()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getThread.

Retrieves the ThreadProxy for the thread on which the event occurred.

public DebugEvent.Type
getType()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getType.

The type of this debug event; BREAKPOINT, SINGLE_STEP, etc.

public String
getUnknownEventDetail()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getUnknownEventDetail.

For UNKNOWN events, may return a detail message or may return null.

public boolean
getWasWrite()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getWasWrite.

For ACCESS_VIOLATION events, indicates whether the fault occurred on a write (vs. a read).

public static BasicDebugEvent
newAccessViolationEvent(ThreadProxy thread, Address pc, boolean wasWrite, Address addr)

private static BasicDebugEvent
public static BasicDebugEvent
public static BasicDebugEvent
newLoadObjectLoadEvent(ThreadProxy thread, Address base)

Factory methods for convenience

public static BasicDebugEvent
private static BasicDebugEvent
public static BasicDebugEvent
public static BasicDebugEvent
public void
public void
public void
public void
setType(DebugEvent.Type type)

Mutators for convenience

public void
public void
setWasWrite(boolean val)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addressback to summary
private Address address
detailback to summary
private String detail
pcback to summary
private Address pc
threadback to summary
private ThreadProxy thread
typeback to summary
private DebugEvent.Type type
wasWriteback to summary
private boolean wasWrite

Constructor Detail

BasicDebugEventback to summary
public BasicDebugEvent(DebugEvent.Type type, ThreadProxy thread)

Method Detail

getAddressback to summary
public Address getAddress()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getAddress.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getAddress.

For ACCESS_VIOLATION events, returns the address at which the fault occurred. For LOADOBJECT_LOAD and LOADOBJECT_UNLOAD events, returns the base address of the loadobject in the target process's address space. For other types of events returns an undefined value.

getPCback to summary
public Address getPC()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getPC.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getPC.

For BREAKPOINT, SINGLE_STEP, and ACCESS_VIOLATION events, returns the program counter at which the event occurred. For other types of events returns an undefined value.

getThreadback to summary
public ThreadProxy getThread()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getThread.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getThread.

Retrieves the ThreadProxy for the thread on which the event occurred. This is always present.

getTypeback to summary
public DebugEvent.Type getType()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getType.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getType.

The type of this debug event; BREAKPOINT, SINGLE_STEP, etc.

getUnknownEventDetailback to summary
public String getUnknownEventDetail()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getUnknownEventDetail.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getUnknownEventDetail.

For UNKNOWN events, may return a detail message or may return null. For other types of events returns an undefined value.

getWasWriteback to summary
public boolean getWasWrite()

Implements sun.jvm.hotspot.debugger.cdbg.DebugEvent.getWasWrite.

Doc from sun.jvm.hotspot.debugger.cdbg.DebugEvent.getWasWrite.

For ACCESS_VIOLATION events, indicates whether the fault occurred on a write (vs. a read). For other types of events returns an undefined value.

newAccessViolationEventback to summary
public static BasicDebugEvent newAccessViolationEvent(ThreadProxy thread, Address pc, boolean wasWrite, Address addr)
newAddressEventback to summary
private static BasicDebugEvent newAddressEvent(DebugEvent.Type type, ThreadProxy thread, Address addr)
newBreakpointEventback to summary
public static BasicDebugEvent newBreakpointEvent(ThreadProxy thread, Address pc)
newLoadObjectLoadEventback to summary
public static BasicDebugEvent newLoadObjectLoadEvent(ThreadProxy thread, Address base)

Factory methods for convenience

newLoadObjectUnloadEventback to summary
public static BasicDebugEvent newLoadObjectUnloadEvent(ThreadProxy thread, Address base)
newPCEventback to summary
private static BasicDebugEvent newPCEvent(DebugEvent.Type type, ThreadProxy thread, Address pc)
newSingleStepEventback to summary
public static BasicDebugEvent newSingleStepEvent(ThreadProxy thread, Address pc)
newUnknownEventback to summary
public static BasicDebugEvent newUnknownEvent(ThreadProxy thread, String detail)
setAddressback to summary
public void setAddress(Address address)
setPCback to summary
public void setPC(Address pc)
setThreadback to summary
public void setThread(ThreadProxy thread)
setTypeback to summary
public void setType(DebugEvent.Type type)

Mutators for convenience

setUnknownEventDetailback to summary
public void setUnknownEventDetail(String msg)
setWasWriteback to summary
public void setWasWrite(boolean val)