Package ghidra.pcode.emulate
Class BreakCallBack
java.lang.Object
ghidra.pcode.emulate.BreakCallBack
Deprecated, for removal: This API element is subject to removal in a future version.
A breakpoint object
This is a base class for breakpoint objects in an emulator. The breakpoints are implemented as callback method, which is overridden for the particular behavior needed by the emulator. Each derived class must override either
- pcodeCallback()
- addressCallback()
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddressCallback(Address addr) Deprecated, for removal: This API element is subject to removal in a future version.This routine is invoked during emulation, if this breakpoint has somehow been associated with this address.booleanDeprecated, for removal: This API element is subject to removal in a future version.This routine is invoked during emulation, if this breakpoint has somehow been associated with this kind of pcode op.voidsetEmulate(Emulate emu) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
emulate
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
BreakCallBack
public BreakCallBack()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
pcodeCallback
Deprecated, for removal: This API element is subject to removal in a future version.This routine is invoked during emulation, if this breakpoint has somehow been associated with this kind of pcode op. The callback can perform any operation on the emulator context it wants. It then returns \b true if these actions are intended to replace the action of the pcode op itself. Or it returns \b false if the pcode op should still have its normal effect on the emulator context.- Parameters:
op- is the particular pcode operation where the break occurs.- Returns:
- \b true if the normal pcode op action should not occur
-
addressCallback
Deprecated, for removal: This API element is subject to removal in a future version.This routine is invoked during emulation, if this breakpoint has somehow been associated with this address. The callback can perform any operation on the emulator context it wants. It then returns true if these actions are intended to replace the action of the entire machine instruction at this address. Or it returns false if the machine instruction should still be executed normally.- Parameters:
addr- is the address where the break has occurred- Returns:
- true if the machine instruction should not be executed
-
setEmulate
Deprecated, for removal: This API element is subject to removal in a future version.
-
PcodeMachine.inject(Address, String). By injecting a userop invocation, you can receive a callback in aAnnotatedPcodeUseropLibrary.