Skip to content
Permalink
Browse files

Merge pull request #101 from L4ys/master

Sync op offset
  • Loading branch information
patateqbool committed Jan 8, 2020
2 parents d7f52b1 + b59718c commit eeca01dbae340c02877f42c0da59be291cdcdc41
Showing with 5 additions and 0 deletions.
  1. +3 −0 idarling/core/events.py
  2. +2 −0 idarling/core/hooks.py
@@ -28,6 +28,7 @@
import ida_struct
import ida_typeinf
import ida_ua
import ida_idc

from ..shared.packets import DefaultEvent

@@ -378,6 +379,8 @@ def __call__(self):
ida_bytes.op_chr(self.ea, self.n)
if self.op == "oct":
ida_bytes.op_oct(self.ea, self.n)
if self.op == "offset":
ida_idc.op_plain_offset(self.ea, self.n, 0)
if self.op == "enum":
id = ida_enum.get_enum(Event.encode(self.extra["ename"]))
ida_bytes.op_enum(self.ea, self.n, id, self.extra["serial"])
@@ -196,6 +196,8 @@ def is_flag(type):
op = "bin"
elif is_flag(ida_bytes.oct_flag()):
op = "oct"
elif is_flag(ida_bytes.offflag()):
op = "offset"
elif is_flag(ida_bytes.enum_flag()):
op = "enum"
id, serial = gather_enum_info(ea, n)

0 comments on commit eeca01d

Please sign in to comment.
You can’t perform that action at this time.