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
|
|
|
/**
|
2020-12-13 09:33:08 +00:00
|
|
|
* @brief The CommandDescription struct is a pair of a Rizin command and its description
|
2019-08-03 21:58:41 +00:00
|
|
|
*/
|
2021-01-24 14:50:13 +00:00
|
|
|
struct CommandDescription
|
|
|
|
{
|
2019-08-03 21:58:41 +00:00
|
|
|
QString command;
|
|
|
|
QString description;
|
|
|
|
};
|
|
|
|
|
2018-08-18 10:51:11 +00:00
|
|
|
struct InitialOptions
|
|
|
|
{
|
|
|
|
enum class Endianness { Auto, Little, Big };
|
|
|
|
|
|
|
|
QString filename;
|
2021-02-24 06:10:01 +00:00
|
|
|
QString projectFile;
|
2018-08-18 10:51:11 +00:00
|
|
|
|
|
|
|
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;
|
2021-01-24 14:50:13 +00:00
|
|
|
|
|
|
|
QList<CommandDescription> analCmd = { { "aaa", "Auto analysis" } };
|
2018-08-18 10:51:11 +00:00
|
|
|
|
|
|
|
QString shellcode;
|
|
|
|
};
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
#endif // CUTTER_INITIALOPTIONS_H
|