2019-11-17 18:44:10 +00:00
|
|
|
#ifndef BASICINSTRUCTIONHIGHLIGHTER_H
|
|
|
|
#define BASICINSTRUCTIONHIGHLIGHTER_H
|
|
|
|
|
|
|
|
#include "CutterCommon.h"
|
|
|
|
#include <map>
|
|
|
|
#include <QColor>
|
|
|
|
|
2021-01-24 14:50:13 +00:00
|
|
|
struct BasicInstruction
|
|
|
|
{
|
2019-11-17 18:44:10 +00:00
|
|
|
RVA address;
|
|
|
|
RVA size;
|
|
|
|
QColor color;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::map<RVA, BasicInstruction>::iterator BasicInstructionIt;
|
|
|
|
|
|
|
|
class BasicInstructionHighlighter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void clear(RVA address, RVA size);
|
|
|
|
void highlight(RVA address, RVA size, QColor color);
|
|
|
|
BasicInstruction *getBasicInstruction(RVA address);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::map<RVA, BasicInstruction> biMap;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BASICINSTRUCTIONHIGHLIGHTER_H
|