Make gen_const work and updates constants

This commit is contained in:
lazymio
2021-10-25 00:57:32 +02:00
parent dd7476a9bd
commit f08b7d6b5b
11 changed files with 41 additions and 11 deletions

View File

@ -6,7 +6,7 @@ all: gen_const
cd unicorn && go build
gen_const:
cd .. && python const_generator.py go
cd .. && python3 const_generator.py go
test: all
cd unicorn && LD_LIBRARY_PATH=../../../ DYLD_LIBRARY_PATH=../../../ go test

View File

@ -23,6 +23,7 @@ const (
MODE_LITTLE_ENDIAN = 0
MODE_BIG_ENDIAN = 1073741824
MODE_AFL = 536870912
MODE_ARM = 0
MODE_THUMB = 16
@ -70,6 +71,10 @@ const (
ERR_HOOK_EXIST = 19
ERR_RESOURCE = 20
ERR_EXCEPTION = 21
ERR_AFL_RET_ERROR = 22
ERR_AFL_RET_NO_AFL = 23
ERR_AFL_RET_CALLED_TWICE = 24
ERR_AFL_RET_FINISHED = 25
MEM_READ = 16
MEM_WRITE = 17
MEM_FETCH = 18