Commit graph

772 commits

Author SHA1 Message Date
farmdve 784b8066e2 Add test for pre-instruction hook being called more times. 2015-12-22 12:33:36 +02:00
Nguyen Anh Quynh 60f6fc425a Merge pull request #330 from xorstream/mips_branch_likely_issue
Added test for MIPS branch likely instructions.
2015-12-20 20:39:23 +08:00
xorstream 7c1297662c Added test for MIPS branch likely instructions. 2015-12-20 16:07:54 +11:00
Nguyen Anh Quynh b72671c6d5 sparc, arm, m68k: check for exit request after every hooked instruction 2015-12-20 12:28:15 +08:00
Nguyen Anh Quynh 4f268febb4 mips: check for exit request after every hooked instruction. this fix issue #329 2015-12-20 12:23:36 +08:00
Nguyen Anh Quynh 63e227a585 indentation 2015-12-20 12:16:03 +08:00
Nguyen Anh Quynh 3327ccd507 Merge pull request #329 from xorstream/emu_stop_in_hook_overrun
Emu stop in hook overrun
2015-12-20 12:14:41 +08:00
xorstream 7877f72a92 Added emu_stop_in_hook_overrun to gitignore 2015-12-20 15:11:01 +11:00
xorstream caa437c0ff Added test for uc_emu_stop() in code hook not always stopping the emu at the current instruction. 2015-12-20 15:03:34 +11:00
xorstream fa4fd72c5f Added test for uc_emu_stop() in code hook not always stopping the emu at the current instruction. 2015-12-20 14:59:29 +11:00
Nguyen Anh Quynh 342a68f9da fix setting cross compilation variables. this is ported over from Capstone 2015-12-20 10:05:04 +08:00
Nguyen Anh Quynh 203876d4f6 support building on OSX 10.6.8. this fix is ported over from Capstone 2015-12-20 10:00:34 +08:00
Nguyen Anh Quynh 0d668d57e7 Merge pull request #328 from lunixbochs/master
add binding support for Go 1.6beta1 (fix #326)
2015-12-18 23:52:30 +08:00
Ryan Hileman c0eabddef3 add binding support for Go 1.6beta1 (fix #326) 2015-12-18 07:42:11 -08:00
Nguyen Anh Quynh f509423cfa update .gitignore 2015-12-17 08:13:39 +08:00
Nguyen Anh Quynh 771f9f7c3b fix conflicts when merging map-ptr branch to master branch 2015-12-17 08:12:02 +08:00
Nguyen Anh Quynh 8d3265d9e1 mips: remove unused variable is_bc_slot 2015-12-16 23:06:17 +08:00
Nguyen Anh Quynh 7b73a298c1 update .gitignore 2015-12-16 23:00:42 +08:00
Nguyen Anh Quynh a6cd09b5c1 Merge branch 'mips_delayslot_codehook' of https://github.com/xorstream/unicorn into xorstream-mips_delayslot_codehook 2015-12-16 22:59:30 +08:00
Nguyen Anh Quynh c8853929b7 Merge pull request #320 from xorstream/threaded
Added test for uc_open() and uc_emu_start() being called by different threads.
2015-12-16 11:07:23 +08:00
Nguyen Anh Quynh 9c91c1ced6 Merge pull request #321 from xorstream/dynload_hook_fix
Fixed the unicorn_dynload.c version of uc_hook_add() to handle UC_HOOK_MEM_*_PROT and UC_HOOK_MEM_*_UNMAPPED.
2015-12-16 11:05:23 +08:00
xorstream 5acb454b7b Fixed the unicorn_dynload.c version of uc_hook_add() to handle UC_HOOK_MEM_*_PROT and UC_HOOK_MEM_*_UNMAPPED. 2015-12-16 13:46:14 +11:00
xorstream d871e17ffd Added return values in main() to rw_hookstack.c so that it builds in MinGW. 2015-12-16 13:13:15 +11:00
xorstream 6aa33e8359 Added test for uc_open() and uc_emu_start() being called by different threads. 2015-12-16 13:08:33 +11:00
xorstream f111d7d1ca Added support for building tests from MinGW. 2015-12-16 12:59:30 +11:00
Nguyen Anh Quynh 00f06e0425 Merge pull request #317 from xorstream/msvc_samples
Fixed includes for moved unicorn_dynload.h file
2015-12-15 14:23:45 +08:00
xorstream f68077852f Fixed includes for moved unicorn_dynload.h file 2015-12-15 17:17:14 +11:00
xorstream 395251d3e8 Fix codehook for MIPS instructions in delay slot 2015-12-15 17:02:56 +11:00
Nguyen Anh Quynh 74aeef217c Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2015-12-13 13:11:54 +08:00
Nguyen Anh Quynh bc63102e50 mips: only patch instruction size when there is a callback on the instruction. this fixes issue #282 2015-12-13 13:11:40 +08:00
Nguyen Anh Quynh b2ab379b55 Merge pull request #311 from farmdve/master
Fix segfault introduced in my previous commits.
2015-12-12 11:14:32 +08:00
Nguyen Anh Quynh 50e8c88729 Merge pull request #312 from univm/master
Test for stack hooking.
2015-12-12 10:56:31 +08:00
univm 845392de1e Test for stack hooking. 2015-12-12 00:48:46 +02:00
farmdve 8b79a872d0 Fix segfault introduced in my previous commits. 2015-12-11 22:35:25 +02:00
Nguyen Anh Quynh f21fa3d966 do not flush TB when l1_map is uninitialized. this fixes issue #280, #284 2015-12-12 03:09:38 +08:00
Nguyen Anh Quynh 9b6701dc4d update .gitignore 2015-12-12 01:39:59 +08:00
Nguyen Anh Quynh 3c72809373 end address of mapping memory is not inclusive, and can wrap around to 0. fix issue #299 2015-12-12 01:37:13 +08:00
Nguyen Anh Quynh 0e62ebc038 unit: fix compilation warning for test_mem_high.c 2015-12-12 00:58:49 +08:00
Nguyen Anh Quynh a142611f56 sparc: set compute functions for icc_table[] & xcc_table[]. this fixes issue #289 2015-12-12 00:41:09 +08:00
Nguyen Anh Quynh 613d60119e update .gitignore 2015-12-11 22:26:05 +08:00
Nguyen Anh Quynh 74986cc59a g_free() can handle NULL pointer 2015-12-11 11:25:35 +08:00
Nguyen Anh Quynh 909bf43e77 Merge branch 'master' of https://github.com/farmdve/unicorn into farmdve-master 2015-12-11 11:19:12 +08:00
Nguyen Anh Quynh ff7e4abd53 Merge pull request #308 from ranmrdrakono/master
Added testcase for int instruction tracing
2015-12-11 10:04:56 +08:00
farmdve 3e57615c76 Fix uc_mem_unmap memory leak and in uc_close.
It appears the problem is that we are not calling the memory region
destructor. After modifying memory_unmap to include the destructor call
for the memory region, the memory is freed.

Furthermore in uc_close we must explicitly free any blocks that were not
unmapped by the user to prevent leaks.

This should fix issue 305.
2015-12-11 02:42:31 +02:00
coco 14e75252a5 added testcase for the values read from high addresses 2015-12-10 16:18:22 +01:00
Nguyen Anh Quynh 9d7f81d195 Merge pull request #307 from xorstream/mips_delayslot_codehook
Added mnemonic printing to disasm function.
2015-12-10 13:17:57 +08:00
Nguyen Anh Quynh cea1f301ea Merge pull request #306 from xorstream/msvc_samples
Moved unicorn_dynload.h into bindings dir.
2015-12-10 13:16:51 +08:00
Nguyen Anh Quynh efb4f6aecb Merge pull request #305 from farmdve/fix_bugs
Unmapped memory is not freed.
2015-12-10 13:16:18 +08:00
xorstream 27128a9563 Added mnemonic printing to disasm function. 2015-12-10 13:09:31 +11:00
xorstream a6a62f6bea Moved unicorn_dynload.h into bindings dir. 2015-12-10 12:06:57 +11:00