Ghidra Decompiler Analysis Engine
|
Go to the documentation of this file.
19 #ifndef __GHIDRA_PROCESS__
20 #define __GHIDRA_PROCESS__
43 const string &getName(
void)
const {
return name; }
107 virtual void loadParameters(
void);
108 virtual void sendResult(
void);
121 virtual void loadParameters(
void);
122 virtual void sendResult(
void);
136 virtual void sendResult(
void);
154 virtual void loadParameters(
void);
172 virtual void loadParameters(
void);
206 virtual void loadParameters(
void);
207 virtual void sendResult(
void);
224 virtual void loadParameters(
void);
225 virtual void sendResult(
void);
233 #ifdef __REMOTE_SOCKET__
234 extern void connect_to_console(
Funcdata *fd);
ostream & sout
The output stream to the Ghidra client.
Definition: ghidra_process.hh:74
Command to flush all symbols associated with a Program (executable)
Definition: ghidra_process.hh:135
Command to set the root Action used by the decompiler or toggle output components.
Definition: ghidra_process.hh:203
A control-flow block built out of sub-components.
Definition: block.hh:271
Ghidra specific architecture information and connection to a Ghidra client.
Base class for a command to the decompiler as issued by a Ghidra client.
Definition: ghidra_process.hh:71
virtual void initialize(void)
Complete initialization of an extension point.
Definition: ghidra_process.cc:497
bool res
Set to true if the configuration action was successful.
Definition: ghidra_process.hh:209
A complete in-memory XML document.
Definition: xml.hh:206
Command to toggle options within the decompiler.
Definition: ghidra_process.hh:222
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:372
int4 res
The meta-command being issued to send back.
Definition: ghidra_process.hh:124
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:342
Registration point and dispatcher for commands sent to the decompiler.
Definition: ghidra_process.hh:38
istream & sin
The input stream from the Ghidra client.
Definition: ghidra_process.hh:73
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:436
static void shutDown(void)
Release all GhidraCommand resources.
Definition: ghidra_process.cc:489
static map< string, GhidraCommand * > commandmap
The central map from name to Ghidra command.
Definition: ghidra_process.hh:40
ArchitectureGhidra * ghidra
The Architecture on which to perform the command.
Definition: ghidra_process.hh:75
int4 status
Meta-command to system (0=wait for next command, 1=terminate process)
Definition: ghidra_process.hh:76
string name
Identifier for capability and associated commands.
Definition: ghidra_process.hh:41
static int4 readCommand(istream &sin, ostream &out)
Dispatch a Ghidra command.
Definition: ghidra_process.cc:465
Infrastructure for discovering code extensions to the decompiler.
virtual void loadParameters(void)
Read parameters directing command execution.
Definition: ghidra_process.cc:75
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:165
Command to structure a control-flow graph.
Definition: ghidra_process.hh:170
A low-level machine address for labelling bytes and data.
Definition: address.hh:46
Container for data structures associated with a single function.
Definition: funcdata.hh:45
virtual void rawAction(void)=0
Perform the action of the command.
Class for automatically registering extension points to the decompiler.
Definition: capability.hh:36
Interface for requesting data-type information from a Ghidra client.
Command to register a new Program (executable) with the decompiler.
Definition: ghidra_process.hh:102
virtual void sendResult(void)
Send results of the command (if any) back to the Ghidra client.
Definition: ghidra_process.cc:97
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:216
int4 doit(void)
Configure and execute the command, then send back results.
Definition: ghidra_process.cc:114
int4 archid
Resulting id of the program to send back.
Definition: ghidra_process.hh:110
An implementation of the Architecture interface and connection to a Ghidra client.
Definition: ghidra_arch.hh:60
Command to decompile a specific function.
Definition: ghidra_process.hh:152
int4 res
Success status returned to the client (0=success)
Definition: ghidra_process.hh:138
The core decompiler commands capability.
Definition: ghidra_process.hh:52
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:281
Command to release all resources associated with a Program (executable) in the decompiler.
Definition: ghidra_process.hh:119
virtual void rawAction(void)
Perform the action of the command.
Definition: ghidra_process.cc:247
bool res
Set to true if the option change succeeded.
Definition: ghidra_process.hh:229