Package ghidra.pcode.emulate
Class BreakTableCallBack
java.lang.Object
ghidra.pcode.emulate.BreakTableCallBack
- All Implemented Interfaces:
BreakTable
@Deprecated(since="12.1",
forRemoval=true)
public class BreakTableCallBack
extends Object
implements BreakTable
Deprecated, for removal: This API element is subject to removal in a future version.
A basic instantiation of a breakpoint table
This object allows breakpoints to registered in the table via either
- registerPcodeCallback()
- registerAddressCallback()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionBreakTableCallBack(SleighLanguage language) Deprecated, for removal: This API element is subject to removal in a future version.The break table needs a translator object so user-defined pcode ops can be registered against by name. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoAddressBreak(Address addr) Deprecated, for removal: This API element is subject to removal in a future version.This routine examines the address based container for any breakpoints associated with the given address.booleandoPcodeOpBreak(PcodeOpRaw curop) Deprecated, for removal: This API element is subject to removal in a future version.This routine examines the pcode-op based container for any breakpoints associated with the given op.voidregisterAddressCallback(Address addr, BreakCallBack func) Deprecated, for removal: This API element is subject to removal in a future version.Any time the emulator is about to execute (the pcode translation of) a particular machine instruction at this address, the indicated breakpoint is invoked first.voidregisterPcodeCallback(String name, BreakCallBack func) Deprecated, for removal: This API element is subject to removal in a future version.Any time the emulator is about to execute a user-defined pcode op with the given name, the indicated breakpoint is invoked first.voidsetEmulate(Emulate emu) Deprecated, for removal: This API element is subject to removal in a future version.This routine invokes the setEmulate method on each breakpoint currently in the tablevoidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Unregister the currently registered PcodeCallback handler for the specified name
-
Field Details
-
DEFAULT_NAME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
BreakTableCallBack
Deprecated, for removal: This API element is subject to removal in a future version.The break table needs a translator object so user-defined pcode ops can be registered against by name.- Parameters:
language- the language
-
-
Method Details
-
registerPcodeCallback
Deprecated, for removal: This API element is subject to removal in a future version.Any time the emulator is about to execute a user-defined pcode op with the given name, the indicated breakpoint is invoked first. The break table does not assume responsibility for freeing the breakpoint object.- Parameters:
name- is the name of the user-defined pcode opfunc- is the breakpoint object to associate with the pcode op
-
unregisterPcodeCallback
Deprecated, for removal: This API element is subject to removal in a future version.Unregister the currently registered PcodeCallback handler for the specified name- Parameters:
name- is the name of the user-defined pcode op
-
registerAddressCallback
Deprecated, for removal: This API element is subject to removal in a future version.Any time the emulator is about to execute (the pcode translation of) a particular machine instruction at this address, the indicated breakpoint is invoked first. The break table does not assume responsibility for freeing the breakpoint object.- Parameters:
addr- is the address associated with the breakpointfunc- is the breakpoint being registered
-
unregisterAddressCallback
Deprecated, for removal: This API element is subject to removal in a future version. -
setEmulate
Deprecated, for removal: This API element is subject to removal in a future version.This routine invokes the setEmulate method on each breakpoint currently in the table- Specified by:
setEmulatein interfaceBreakTable- Parameters:
emu- is the emulator to be associated with the breakpoints
-
doPcodeOpBreak
Deprecated, for removal: This API element is subject to removal in a future version.This routine examines the pcode-op based container for any breakpoints associated with the given op. If one is found, its pcodeCallback method is invoked.- Specified by:
doPcodeOpBreakin interfaceBreakTable- Parameters:
curop- is pcode op being checked for breakpoints- Returns:
- true if the breakpoint exists and returns true, otherwise return false
-
doAddressBreak
Deprecated, for removal: This API element is subject to removal in a future version.This routine examines the address based container for any breakpoints associated with the given address. If one is found, its addressCallback method is invoked.- Specified by:
doAddressBreakin interfaceBreakTable- Parameters:
addr- is the address being checked for breakpoints- Returns:
- true if the breakpoint exists and returns true, otherwise return false
-