2018-08-18 10:51:11 +00:00
|
|
|
|
|
|
|
#ifndef CUTTER_INITIALOPTIONS_H
|
|
|
|
#define CUTTER_INITIALOPTIONS_H
|
|
|
|
|
2019-02-22 16:50:45 +00:00
|
|
|
#include "core/Cutter.h"
|
2018-08-18 10:51:11 +00:00
|
|
|
|
2019-08-03 21:58:41 +00:00
|
|
|
/**
|
|
|
|
* @brief The CommandDescription struct is a pair of a radare2 command and its description
|
|
|
|
*/
|
|
|
|
struct CommandDescription {
|
|
|
|
QString command;
|
|
|
|
QString description;
|
|
|
|
};
|
|
|
|
|
2018-08-18 10:51:11 +00:00
|
|
|
struct InitialOptions
|
|
|
|
{
|
|
|
|
enum class Endianness { Auto, Little, Big };
|
|
|
|
|
|
|
|
QString filename;
|
|
|
|
|
|
|
|
bool useVA = true;
|
|
|
|
RVA binLoadAddr = RVA_INVALID;
|
|
|
|
RVA mapAddr = RVA_INVALID;
|
|
|
|
|
|
|
|
QString arch;
|
|
|
|
QString cpu;
|
|
|
|
int bits = 0;
|
|
|
|
QString os;
|
|
|
|
|
|
|
|
Endianness endian;
|
|
|
|
|
|
|
|
bool writeEnabled = false;
|
|
|
|
bool loadBinInfo = true;
|
|
|
|
QString forceBinPlugin;
|
|
|
|
|
|
|
|
bool demangle = true;
|
|
|
|
|
|
|
|
QString pdbFile;
|
|
|
|
QString script;
|
2019-08-03 21:58:41 +00:00
|
|
|
|
|
|
|
QList<CommandDescription> analCmd = { {"aaa", "Auto analysis"} };
|
2018-08-18 10:51:11 +00:00
|
|
|
|
|
|
|
QString shellcode;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //CUTTER_INITIALOPTIONS_H
|