18 std::map<uint64_t, ByteVector> _insns;
26 virtual void clear()
override;
29 virtual int hit(Target::Thread *thread,
Site &site)
override;
32 virtual void getOpcode(
size_t size, ByteVector &opcode)
const;
35 virtual ErrorCode enableLocation(
Site const &site,
36 Target::Thread *thread =
nullptr)
override;
37 virtual ErrorCode disableLocation(
Site const &site,
38 Target::Thread *thread =
nullptr)
override;
41 void enable(Target::Thread *thread =
nullptr)
override;
42 void disable(Target::Thread *thread =
nullptr)
override;
45 ErrorCode isValid(
Address const &address,
size_t size,
46 Mode mode)
const override;
47 size_t chooseBreakpointSize(
Address const &address)
const override;
49#if defined(ARCH_ARM) || defined(ARCH_ARM64)
52 enumerate(std::function<
void(
Site const &)>
const &cb)
const override;
55 virtual ErrorCode add(
Address const &address, Lifetime lifetime,
size_t size,
57 virtual ErrorCode remove(
Address const &address)
override;
60 virtual bool has(
Address const &address)
const override;
63 virtual bool enabled(Target::Thread *thread =
nullptr)
const override;
66 virtual bool fillStopInfo(Target::Thread *thread,