decompiler 1.0.0
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ghidra::FlushNative Class Reference

Command to flush all symbols associated with a Program (executable) More...

#include <ghidra_process.hh>

Inheritance diagram for ghidra::FlushNative:
ghidra::GhidraCommand

Public Member Functions

virtual void rawAction (void)
 Perform the action of the command. More...
 
- Public Member Functions inherited from ghidra::GhidraCommand
 GhidraCommand (void)
 Construct given i/o streams.
 
virtual ~GhidraCommand (void)
 Destructor.
 
virtual void rawAction (void)=0
 Perform the action of the command. More...
 
int4 doit (void)
 Configure and execute the command, then send back results. More...
 

Public Attributes

int4 res
 Success status returned to the client (0=success)
 

Private Member Functions

virtual void sendResult (const string &errorMsg)
 Send back response to the command. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ghidra::GhidraCommand
virtual void loadParameters (void)
 Read parameters directing command execution. More...
 
virtual void sendResult (const string &errorMsg)
 Send back response to the command. More...
 
- Protected Attributes inherited from ghidra::GhidraCommand
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)
 

Detailed Description

Command to flush all symbols associated with a Program (executable)

Clear out any Symbol, Scope, Datatype, and Funcdata objects that have accumulated in the symbol table. This lets the decompiler keep a light-weight sync between its view of symbols and the Ghidra client's. Subsequent decompilation will simply (re)fetch any symbols as needed. The command expects a single string parameter encoding the id of the program to flush.

Member Function Documentation

◆ rawAction()

void ghidra::FlushNative::rawAction ( void  )
virtual

◆ sendResult()

void ghidra::FlushNative::sendResult ( const string &  errorMsg)
privatevirtual

Send back response to the command.

This method can be overloaded to send back any kind of information as a string. Individual records are sent using the message protocol. If the command failed, a string describing the error is passed in.

Parameters
errorMsgis, if not empty, the error causing the commmand to fail

Reimplemented from ghidra::GhidraCommand.

References res, ghidra::GhidraCommand::sendResult(), and ghidra::GhidraCommand::sout.


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