Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::PutsCallBack Class Reference
Inheritance diagram for ghidra::PutsCallBack:
[legend]
Collaboration diagram for ghidra::PutsCallBack:
[legend]

Public Member Functions

virtual bool addressCallback (const Address &addr)
 Call back method for address based breakpoints.
 
- Public Member Functions inherited from ghidra::BreakCallBack
 BreakCallBack (void)
 Generic breakpoint constructor.
 
virtual bool pcodeCallback (PcodeOpRaw *op)
 Call back method for pcode based breakpoints.
 
void setEmulate (Emulate *emu)
 Associate a particular emulator with this breakpoint.
 

Additional Inherited Members

- Protected Attributes inherited from ghidra::BreakCallBack
Emulateemulate
 The emulator currently associated with this breakpoint.
 

Member Function Documentation

◆ addressCallback()

bool ghidra::PutsCallBack::addressCallback ( const Address addr)
virtual

Call back method for address based breakpoints.

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
addris the address where the break has occurred
Returns
true if the machine instruction should not be executed

Reimplemented from ghidra::BreakCallBack.

References ghidra::BreakCallBack::emulate, ghidra::MemoryState::getChunk(), ghidra::AddrSpaceManager::getSpaceByName(), ghidra::MemoryState::getTranslate(), ghidra::MemoryState::getValue(), ghidra::Emulate::setExecuteAddress(), and ghidra::MemoryState::setValue().


The documentation for this class was generated from the following file: