Nguyen Anh Quynh
249e2ac0a0
Merge branch 'hook-refactor' of https://github.com/lunixbochs/unicorn into lunixbochs-hook-refactor
2016-01-23 10:58:37 +08:00
Nguyen Anh Quynh
d79925f477
sparc: add SPARC32 mode (= UC_MODE_32)
2016-01-23 10:48:18 +08:00
Ryan Hileman
33180b5afa
add test for multiple basic block hooks
2016-01-22 18:42:14 -08:00
Nguyen Anh Quynh
5c6c67bb3a
regress: fix Sparc mode for sparc_reg.py
2016-01-23 10:17:42 +08:00
xorstream
8763d426c2
Fix uc_mode usage in source code
2016-01-23 12:08:49 +11:00
Nguyen Anh Quynh
840eb54f05
Revert "arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387 )"
...
This reverts commit 3000ca6abf
.
2016-01-22 11:33:36 +08:00
Nguyen Anh Quynh
3000ca6abf
arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387 )
2016-01-22 11:33:28 +08:00
Nguyen Anh Quynh
6f0a01293d
unit: fix some compilation warnings in test_tb_x86.c
2016-01-17 10:06:00 +08:00
steve
f0dac63b69
In response to issue #364 , a unit test case has been created
...
for exercising proper flushing of the instruction translation cache.
2016-01-16 18:05:32 -05:00
Nguyen Anh Quynh
d0125eb8bf
regress: add invalid_write.py to test issue #371
2016-01-13 11:35:09 +08:00
Nguyen Anh Quynh
7de48f2f75
regress: add emu_clear_errors to .gitignore
2016-01-12 01:02:45 +08:00
Nguyen Anh Quynh
e1fe63ae13
regress: fix compilation warnings for emu_clear_errors.c
2016-01-12 00:37:15 +08:00
Nguyen Anh Quynh
fa430b4ad4
Merge branch 'test/issue-351' of https://github.com/williballenthin/unicorn into williballenthin-test/issue-351
2016-01-12 00:22:33 +08:00
Willi Ballenthin
a9d4b4cfa7
add test case in C demonstrating issue 351
2016-01-11 09:57:13 -05:00
Nguyen Anh Quynh
f4a5273ce7
Merge pull request #365 from williballenthin/test/issue-351
...
add test case demonstrating issue 351
2016-01-11 16:13:52 +08:00
Ryan Hileman
b6db70808d
add regress for #366
2016-01-10 23:51:11 -08:00
Willi Ballenthin
b2b1d0be01
add test case demonstrating issue 351
2016-01-10 23:56:34 -05:00
farmdve
264c4c1b54
Add some fixes to the tests.
...
My mem_nofree test fails on the latest code as apparently my address and
sizes overlap each other.
The mem_unmap test failed as the invalid memory hook case was incorrect.
2016-01-05 18:02:54 +02:00
Nguyen Anh Quynh
06108ea908
regress: add rep_hook.py
2016-01-01 10:44:08 +08:00
Nguyen Anh Quynh
91501bc2d1
unit: modify the testcase #349 to reflect the recent change on the semantics of uc_mem_map()
2015-12-30 09:19:34 +08:00
Nguyen Anh Quynh
6e534417f1
unit: change clang -> CC
2015-12-30 08:50:58 +08:00
coco
fa2da819b6
added test for unmap of doubly mapped region
2015-12-28 22:02:31 +01:00
Nguyen Anh Quynh
99b401c609
Merge branch 'la-fixed' of https://github.com/JCYang/unicorn into JCYang-la-fixed
2015-12-28 12:21:31 +08:00
Justin Campbell
9da93af861
Removed commented out code from MIPS kernel MMU test
2015-12-28 00:36:56 +00:00
Justin Campbell
822198ad16
Added new regression test for ability to execute MIPS at KSEG0 and higher when in kernel mode
2015-12-28 00:34:26 +00:00
Spl3en
c9f6648877
Add sysenter_hook_x86 to tests/regress/Makefile and sysenter_hook_x86 to .gitignore.
2015-12-24 18:25:35 +01:00
Spl3en
4c3ad139ea
( Fix #341 ) SYSENTER instruction is not properly hooked with uc_hook_add in x86 emulation.
...
helper_sysenter in qemu/target-i386/seg_helper.c didn't check properly if a call interrupt callback was registred.
It has been fixed by copying the helper_syscall behavior.
2015-12-24 16:00:22 +01:00
Nguyen Anh Quynh
ed319bda0b
x86: identity map guest address to host address. this fixes issue #300
2015-12-24 09:51:17 +08:00
Nguyen Anh Quynh
2984901f62
regress: fix testcase hook_code_add_del.py
2015-12-23 01:45:29 +08:00
Nguyen Anh Quynh
b29ce1c4fd
chmod +x hook_code_add_del.py
2015-12-23 01:44:02 +08:00
Nguyen Anh Quynh
0f6d27cc88
Merge branch 'xorstream-mips_branch_likely_issue'
2015-12-23 01:40:51 +08:00
Nguyen Anh Quynh
24d344bf61
Merge branch 'master' of https://github.com/unicorn-engine/unicorn
2015-12-23 01:40:42 +08:00
Nguyen Anh Quynh
85c2bd31f5
indentation
2015-12-23 01:18:52 +08:00
Nguyen Anh Quynh
3bd2e1213d
Merge pull request #335 from michalmalik/patch-1
...
Add regress test for issue #334
2015-12-22 21:30:22 +08:00
farmdve
784b8066e2
Add test for pre-instruction hook being called more times.
2015-12-22 12:33:36 +02:00
Michal Malik
39c7f0fb1d
Add regress test for issue #334
...
https://github.com/unicorn-engine/unicorn/issues/334
The code is a bit different than in the issue, but it should demonstrate the main problem just fine.
2015-12-22 11:29:55 +01:00
xorstream
ae64fb370b
Fix address in comments
2015-12-22 21:01:30 +11:00
JC Yang
5be70eb91b
Add test case for issue 287.
2015-12-22 15:25:36 +08:00
Nguyen Anh Quynh
ee1772e28a
indentation
2015-12-22 15:13:59 +08:00
xorstream
5fda79b38a
Updated mips_branch_likely_issue test to check if executed and hooked.
2015-12-21 09:57:15 +11:00
Nguyen Anh Quynh
5e8af30110
indentation
2015-12-20 20:43:37 +08:00
xorstream
7c1297662c
Added test for MIPS branch likely instructions.
2015-12-20 16:07:54 +11:00
Nguyen Anh Quynh
63e227a585
indentation
2015-12-20 12:16:03 +08: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
771f9f7c3b
fix conflicts when merging map-ptr branch to master branch
2015-12-17 08:12:02 +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
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