public class BasicDebugEvent extends java.lang.Object implements DebugEvent
DebugEvent.Type
Constructor and Description |
---|
BasicDebugEvent(DebugEvent.Type type,
ThreadProxy thread) |
Modifier and Type | Method and Description |
---|---|
Address |
getAddress()
For ACCESS_VIOLATION events, returns the address at which the
fault occurred.
|
Address |
getPC()
For BREAKPOINT, SINGLE_STEP, and ACCESS_VIOLATION events,
returns the program counter at which the event occurred.
|
ThreadProxy |
getThread()
Retrieves the ThreadProxy for the thread on which the event
occurred.
|
DebugEvent.Type |
getType()
The type of this debug event; BREAKPOINT, SINGLE_STEP, etc.
|
java.lang.String |
getUnknownEventDetail()
For UNKNOWN events, may return a detail message or may return
null.
|
boolean |
getWasWrite()
For ACCESS_VIOLATION events, indicates whether the fault
occurred on a write (vs.
|
static BasicDebugEvent |
newAccessViolationEvent(ThreadProxy thread,
Address pc,
boolean wasWrite,
Address addr) |
static BasicDebugEvent |
newBreakpointEvent(ThreadProxy thread,
Address pc) |
static BasicDebugEvent |
newLoadObjectLoadEvent(ThreadProxy thread,
Address base)
Factory methods for convenience
|
static BasicDebugEvent |
newLoadObjectUnloadEvent(ThreadProxy thread,
Address base) |
static BasicDebugEvent |
newSingleStepEvent(ThreadProxy thread,
Address pc) |
static BasicDebugEvent |
newUnknownEvent(ThreadProxy thread,
java.lang.String detail) |
void |
setAddress(Address address) |
void |
setPC(Address pc) |
void |
setThread(ThreadProxy thread) |
void |
setType(DebugEvent.Type type)
Mutators for convenience
|
void |
setUnknownEventDetail(java.lang.String msg) |
void |
setWasWrite(boolean val) |
public BasicDebugEvent(DebugEvent.Type type, ThreadProxy thread)
public DebugEvent.Type getType()
DebugEvent
getType
in interface DebugEvent
public ThreadProxy getThread()
DebugEvent
getThread
in interface DebugEvent
public Address getPC()
DebugEvent
getPC
in interface DebugEvent
public boolean getWasWrite()
DebugEvent
getWasWrite
in interface DebugEvent
public Address getAddress()
DebugEvent
getAddress
in interface DebugEvent
public java.lang.String getUnknownEventDetail()
DebugEvent
getUnknownEventDetail
in interface DebugEvent
public void setType(DebugEvent.Type type)
public void setThread(ThreadProxy thread)
public void setPC(Address pc)
public void setWasWrite(boolean val)
public void setAddress(Address address)
public void setUnknownEventDetail(java.lang.String msg)
public static BasicDebugEvent newLoadObjectLoadEvent(ThreadProxy thread, Address base)
public static BasicDebugEvent newLoadObjectUnloadEvent(ThreadProxy thread, Address base)
public static BasicDebugEvent newBreakpointEvent(ThreadProxy thread, Address pc)
public static BasicDebugEvent newSingleStepEvent(ThreadProxy thread, Address pc)
public static BasicDebugEvent newAccessViolationEvent(ThreadProxy thread, Address pc, boolean wasWrite, Address addr)
public static BasicDebugEvent newUnknownEvent(ThreadProxy thread, java.lang.String detail)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.