Make gen_const work and updates constants

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

View File

@@ -8,4 +8,4 @@ install: gen_const
cd unicorn_gem && gem install --local pkg/unicorn-engine-1.0.1.gem
gen_const:
cd .. && python const_generator.py ruby
cd .. && python3 const_generator.py ruby

View File

@@ -23,6 +23,7 @@ module UnicornEngine
UC_MODE_LITTLE_ENDIAN = 0
UC_MODE_BIG_ENDIAN = 1073741824
UC_MODE_AFL = 536870912
UC_MODE_ARM = 0
UC_MODE_THUMB = 16
@@ -70,6 +71,10 @@ module UnicornEngine
UC_ERR_HOOK_EXIST = 19
UC_ERR_RESOURCE = 20
UC_ERR_EXCEPTION = 21
UC_ERR_AFL_RET_ERROR = 22
UC_ERR_AFL_RET_NO_AFL = 23
UC_ERR_AFL_RET_CALLED_TWICE = 24
UC_ERR_AFL_RET_FINISHED = 25
UC_MEM_READ = 16
UC_MEM_WRITE = 17
UC_MEM_FETCH = 18