Commit graph

598 commits

Author SHA1 Message Date
Antonio Parata d92bee414d Implemented exception as error management mechanism and removed the error codes 2015-10-16 17:43:56 +02:00
Antonio Parata 2a2553e7f5 Implemented exception as error management mechanism and removed the error codes 2015-10-16 17:02:49 +02:00
Nguyen Anh Quynh 90153900bb Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2015-10-16 22:03:38 +08:00
Nguyen Anh Quynh 4860fdb34c add soname to dynamic library. this fixes issue #188 2015-10-16 22:03:24 +08:00
Nguyen Anh Quynh b7269a4f50 Merge pull request #186 from lunixbochs/master
fix sample.go
2015-10-16 21:06:33 +08:00
Ryan Hileman c41294d45d fix sample.go 2015-10-16 05:59:55 -07:00
Nguyen Anh Quynh d5158f4800 Merge pull request #176 from MattPD/patch-1
Fix typo in register name (C sample)
2015-10-16 02:45:44 +08:00
Nguyen Anh Quynh af340203cd Merge pull request #177 from MattPD/patch-2
Fix typo in register name (Python sample)
2015-10-16 02:44:57 +08:00
Matt 8886553116 Fix typo in register name (Python sample)
Register should be `edx` (not `dex`)
2015-10-15 20:40:03 +02:00
Matt 938a118221 Fix typo in register name
Register should be `edx` (not `dex`).
2015-10-15 20:38:44 +02:00
Nguyen Anh Quynh a2edc1852d typo 2015-10-16 00:22:04 +08:00
Nguyen Anh Quynh 468b6eace7 add ChangeLog 2015-10-15 23:54:39 +08:00
Nguyen Anh Quynh 749a25d6d3 python: no installer & PyPI packages available yet 2015-10-15 23:51:31 +08:00
Nguyen Anh Quynh 15c5705a23 improve COMPILE.TXT 2015-10-15 22:07:26 +08:00
Nguyen Anh Quynh 00300d0d97 Merge pull request #175 from enkomio/master
Completed .NET binding and refactoring
2015-10-15 18:45:52 +08:00
Antonio Parata d2f487485c Refactored test project 2015-10-15 12:03:23 +02:00
Antonio Parata c0ba09e0b8 Implemented uc_strerror and minor refactoring 2015-10-15 11:24:20 +02:00
Nguyen Anh Quynh 03b2fbfbcb enable gen_const for .NET in bindings/Makefile 2015-10-15 16:23:14 +08:00
Nguyen Anh Quynh 7dae96c428 Merge branch 'master' of https://github.com/enkomio/unicorn into enkomio-master 2015-10-15 16:17:41 +08:00
Nguyen Anh Quynh 314518c340 correct COMPILE.TXT 2015-10-15 16:16:30 +08:00
Nguyen Anh Quynh 563f7359dc typo 2015-10-15 16:15:45 +08:00
Nguyen Anh Quynh 83bdfa357b add bindings/README 2015-10-15 16:14:36 +08:00
Nguyen Anh Quynh d3374a7bbd improve COMPILE.TXT 2015-10-15 16:05:30 +08:00
Nguyen Anh Quynh f2877f6aee Merge pull request #174 from cseagle/java_dev
Add README.TXT for java bindings
2015-10-15 08:31:02 +08:00
Chris Eagle 4720322711 Add README.TXT for java bindings 2015-10-14 16:50:50 -07:00
Antonio Parata 59c3f1b315 Generated constants file via python script 2015-10-14 16:34:10 +02:00
Antonio Parata a45bc0c8cd Refactored in order to be independent from the OS path separator, also added support for .net constants generation 2015-10-14 16:32:31 +02:00
Antonio Parata c1423332d4 Fixed typo and minor code refactoring 2015-10-14 15:05:18 +02:00
Antonio Parata 7a105c495b First dotnet binding commit 2015-10-14 10:55:50 +02:00
Antonio Parata 06f1908873 Added Visual studio files to ignore 2015-10-14 10:51:23 +02:00
Nguyen Anh Quynh 638185cfae Merge pull request #172 from lunixbochs/master
add Go README and sample.go for #169
2015-10-14 13:43:16 +08:00
Ryan Hileman 1bb4d6685c add Go README and sample.go 2015-10-13 19:41:55 -07:00
Nguyen Anh Quynh b1d41d414b on some hook events, uc_hook_add() should not allow more than 1 handler. this add UC_ERR_HOOK_EXIST error type 2015-10-10 18:01:47 +08:00
Nguyen Anh Quynh 5b24c24e82 Merge pull request #168 from lunixbochs/master
fix #165
2015-10-06 14:33:56 +08:00
Ryan Hileman e6b07f4f65 fix #165 2015-10-05 23:30:54 -07:00
Nguyen Anh Quynh b0fa23ebe1 Merge pull request #166 from SeanHeelan/master
Regression test for issue #165
2015-10-06 14:14:24 +08:00
Sean Heelan bb4011efe2 Regression test for issue #165 2015-10-06 12:55:09 +07:00
Nguyen Anh Quynh 9410b8fbe7 regress: add shebang for ensure_typedef_consts_generated.py 2015-10-04 11:21:37 +08:00
Nguyen Anh Quynh d93210ad5a python: better support for Python3 (adapted from Capstone code) 2015-10-04 10:55:29 +08:00
Nguyen Anh Quynh d13a4197f1 Merge pull request #163 from lunixbochs/master
add composite const generator (fix #161)
2015-10-04 10:40:29 +08:00
Ryan Hileman 7e7c6512f5 add composite const generator (fix #161) 2015-10-03 10:41:19 -07:00
Nguyen Anh Quynh b7c4031ed2 update CREDITS.TXT 2015-10-03 16:02:49 +08:00
Nguyen Anh Quynh 600a1af710 Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2015-10-03 15:46:19 +08:00
Nguyen Anh Quynh e1e0946f65 Merge pull request #162 from SeanHeelan/master
Regression test for issue #161
2015-10-03 14:58:32 +08:00
Sean Heelan fd6b510038 Added a comment explaining what is being tested for 2015-10-03 12:36:17 +07:00
Sean Heelan f62418fc07 Regression test for issue #161 2015-10-03 12:22:41 +07:00
Nguyen Anh Quynh 9e64cba6ec Rename some hook related enums:
- UC_ERR_READ_INVALID -> UC_ERR_READ_UNMAPPED
 - UC_ERR_WRITE_INVALID -> UC_ERR_WRITE_UNMAPPED
 - UC_ERR_FETCH_INVALID -> UC_ERR_FETCH_UNMAPPED
 - UC_MEM_READ_INVALID -> UC_MEM_READ_UNMAPPED
 - UC_MEM_WRITE_INVALID -> UC_MEM_WRITE_UNMAPPED
 - UC_MEM_FETCH_INVALID -> UC_MEM_FETCH_UNMAPPED
 - UC_HOOK_MEM_READ_INVALID -> UC_HOOK_MEM_READ_UNMAPPED
 - UC_HOOK_MEM_WRITE_INVALID -> UC_HOOK_MEM_WRITE_UNMAPPED
 - UC_HOOK_MEM_FETCH_INVALID -> UC_HOOK_MEM_FETCH_UNMAPPED
 - UC_HOOK_MEM_INVALID -> UC_HOOK_MEM_UNMAPPED

This also renames some newly added macros to use _INVALID postfix:

 - UC_HOOK_MEM_READ_ERR -> UC_HOOK_MEM_READ_INVALID
 - UC_HOOK_MEM_WRITE_ERR -> UC_HOOK_MEM_WRITE_INVALID
 - UC_HOOK_MEM_FETCH_ERR -> UC_HOOK_MEM_FETCH_INVALID
 - UC_HOOK_MEM_ERR -> UC_HOOK_MEM_INVALID

Fixed all the bindings Java, Go & Python.
2015-09-30 14:46:55 +08:00
Nguyen Anh Quynh 3ca8774f1a arm: properly handle the case when first insn in block is until address 2015-09-30 14:42:08 +08:00
Nguyen Anh Quynh 4a42041a83 handle 'bad ram pointer' case. this fixes issue #159 2015-09-29 18:22:22 +08:00
Nguyen Anh Quynh 976950d3c3 chmod +x tests/regress/bad_ram.py 2015-09-29 15:24:30 +08:00