diff options
Diffstat (limited to 'miasm/tools/codenat.py')
| -rw-r--r-- | miasm/tools/codenat.py | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/miasm/tools/codenat.py b/miasm/tools/codenat.py index f1758752..6eebeef3 100644 --- a/miasm/tools/codenat.py +++ b/miasm/tools/codenat.py @@ -23,18 +23,23 @@ from ctypes import * from miasm.tools.to_c_helper import * from miasm.tools.emul_lib import libcodenat_interface + # interrupt with eip update after instr EXCEPT_CODE_AUTOMOD = (1<<0) EXCEPT_SOFT_BP = (1<<1) +EXCEPT_BREAKPOINT_INTERN = (1<<2) + +EXCEPT_NUM_UDPT_EIP = (1<<5) # interrupt with eip at instr -EXCEPT_UNK_MEM_AD = (1<<2) -EXCEPT_THROW_SEH = (1<<3) -EXCEPT_UNK_EIP = (1<<4) -EXCEPT_ACCESS_VIOL = (1<<5) -EXCEPT_INT_DIV_BY_ZERO = (1<<6) -EXCEPT_PRIV_INSN = (1<<7) -EXCEPT_ILLEGAL_INSN = (1<<8) +EXCEPT_UNK_MEM_AD = (1<<6) +EXCEPT_THROW_SEH = (1<<7) +EXCEPT_UNK_EIP = (1<<8) +EXCEPT_ACCESS_VIOL = (1<<9) +EXCEPT_INT_DIV_BY_ZERO = (1<<10) +EXCEPT_PRIV_INSN = (1<<11) +EXCEPT_ILLEGAL_INSN = (1<<12) + @@ -46,10 +51,15 @@ EXCEPTION_PRIV_INSTRUCTION = 0xc0000096 EXCEPTION_ILLEGAL_INSTRUCTION = 0xc000001d + + PAGE_READ = 1 PAGE_WRITE = 2 PAGE_EXEC = 4 +BREAKPOINT_READ = 1 +BREAKPOINT_WRITE = 2 + class bloc_nat: |