Ghidra 11.3.2
Ghidra internal decompiler documentation.
|
Command to provide the global settings used by the decompiler process during feature/signature generation. More...
#include <signature_ghidra.hh>
Public Member Functions | |
virtual void | rawAction (void) |
Perform the action of the command. | |
![]() | |
GhidraCommand (void) | |
Construct given i/o streams. | |
virtual | ~GhidraCommand (void) |
Destructor. | |
int4 | doit (void) |
Configure and execute the command, then send back results. | |
Private Member Functions | |
virtual void | loadParameters (void) |
Read parameters directing command execution. | |
Private Attributes | |
uint4 | settings |
Opaque settings value being requested. | |
Additional Inherited Members | |
![]() | |
virtual void | sendResult (void) |
Send results of the command (if any) back to the Ghidra client. | |
![]() | |
istream & | sin |
The input stream from the Ghidra client. | |
ostream & | sout |
The output stream to the Ghidra client. | |
ArchitectureGhidra * | ghidra |
The Architecture on which to perform the command. | |
int4 | status |
Meta-command to system (0=wait for next command, 1=terminate process) | |
Command to provide the global settings used by the decompiler process during feature/signature generation.
The command expects to receive an opaque integer value encoding the state of boolean properties affecting feature generation. The command returns 't' indicating a valid setting was received or 'f' for an invalid setting.
|
privatevirtual |
Read parameters directing command execution.
This method reads an id selecting the Architecture to act on, but it can be overloaded to read any set of data from the Ghidra client to configure how the command is executed. Individual parameters are read using the method protocol.
Reimplemented from ghidra::GhidraCommand.
References ghidra::GhidraCommand::loadParameters(), ghidra::ArchitectureGhidra::readStringStream(), settings, and ghidra::GhidraCommand::sin.
|
virtual |
Perform the action of the command.
Configuration is assumed to have happened, and this object can immediately begin examining and manipulating data under the active Architecture object to perform the command.
Implements ghidra::GhidraCommand.
References ghidra::SigManager::setSettings(), settings, ghidra::GhidraCommand::sout, ghidra::GraphSigManager::testSettings(), and ghidra::ArchitectureGhidra::writeStringStream().