07f94ad1fc
Added an invalid instruction hook ( #1132 )
...
* first draft for an invalid instruction hook
* Fixed documentation on return value of invalid insn hook
2019-09-23 01:53:06 +08:00
8987ad0fff
Handle serialization of cpu context save ( #1129 )
...
* Handle the cpu context save in a more pythonic way, so the context can be serialized and reuse in an other process using the same emulator architecture and modes
* Fix type error ; mistakes a size_t uint64_t ; breaks in 32bit...
2019-09-07 19:09:17 +08:00
e6c27cfbd5
LGPL2 for all header files under include/unicorn/
2017-12-16 10:08:42 +08:00
3fdb2d2442
add architecture query ( #842 )
2017-05-21 09:47:02 +08:00
14222bd5f0
Update UC_HOOK_MEM_VALID ( #837 )
...
* Update UC_HOOK_MEM_VALID
UC_HOOK_MEM_READ fires before handlers for invalid memory reads, so UC_HOOK_MEM_VALID would technically also be receiving invalid memory reads. Switching to UC_HOOK_MEM_READ_AFTER ensures that only actually valid reads are hooked
* Removed macro change, added comment
Removed the macro change, but added a clarifying comment. May submit a future PR with a new macro added
* Update unicorn.h
will -> may
* Update unicorn.h
2017-05-18 08:12:46 +07:00
476553223b
Fixing issues with const_generator.py ( #832 )
2017-05-14 00:16:48 +07:00
e95edd37f3
Update unicorn.h ( #821 )
...
Further clarifying the comments I PRed last week.
2017-05-06 22:32:00 +08:00
c09a52e803
Update comments on UC_MEM_*_UNMAPPED ( #811 )
...
Updated the comment on UC_MEM_*_UNMAPPED to clarify what happens if "true" is returned
2017-04-27 09:29:01 +08:00
f6908f03a9
Updated uc_close comment to clarify usage ( #805 )
2017-04-24 23:55:18 +08:00
dd07ae607c
bump extra version to 2
2017-04-21 15:30:40 +08:00
e917c9de10
Merge branch 'master' into msvc2
2017-04-21 01:17:00 +08:00
5dbc640b9a
bump UC_VERSION_EXTRA to 1
2017-04-20 14:14:24 +08:00
6ea39f7d5a
merge msvc with master
2017-02-24 10:39:36 +08:00
d5870ff47d
Update unicorn.h ( #753 )
...
Make it clear that only very few instructions can be hooked
2017-02-21 10:22:17 +08:00
2a941e3efb
Finalise MSVC port ( #739 )
...
* Fix for MIPS issue.
* Sparc support added.
* M68K support added.
* Arm support ported.
* Fix issue with VS2015 shlobj.h file
* Arm issue fix.
* Finalise MSVC port.
2017-01-24 22:09:33 +08:00
e98a396e68
fix include path of platform.h
2017-01-21 11:31:29 +08:00
fac6a66860
platform.h move #3
2017-01-21 00:13:21 +11:00
1fea4e6d87
Some small changes to clean up before pull request.
2017-01-20 22:34:14 +11:00
92392e0f57
Merge with current master.
2017-01-20 18:22:28 +11:00
ec6602a7e1
fixed documentation of uc_emu_stop ( #721 )
2017-01-20 06:19:43 +08:00
1aeaf5c40d
This code should now build the x86_x64-softmmu part 2.
2017-01-19 22:50:28 +11:00
bc569f5a54
rename API uc_mem_free() to uc_free(). see #662
2017-01-10 20:59:14 +08:00
fdbbdc6216
rename uc_context_free() to uc_mem_free(). see #373
2017-01-09 20:52:14 +08:00
7a1930a879
add UC_VERSION_{MAJOR, MINOR, EXTRA}
2016-10-25 14:37:47 +08:00
4083b87032
add new hook type UC_HOOK_MEM_READ_AFTER, adapted from PR #399 by @farmdve. updated all bindings, except Ruby & Haskell
2016-10-22 11:19:55 +08:00
ea54204952
Tweak some names in a few places, encapsulate the uc_context struct to hide it from users for some reason
2016-10-10 14:04:51 -07:00
1ab2154fe5
Change save/restore API to have explicit alloc/free functions. Python has explicit save/update functions.
2016-10-07 11:39:42 -07:00
a6e8564153
typo
2016-10-07 10:06:53 +08:00
73577cbcd1
rename uc_regstate_restore to uc_context_restore, uc_context_save to uc_context_save
2016-10-07 10:03:19 +08:00
e3b0e52013
Rename save/restore functions to match the style of the rest of the API
2016-09-28 21:21:44 -07:00
0ef2b5fd71
New feature: registers can be bulk saved/restored in an opaque blob
2016-08-20 04:14:07 -07:00
9a2a5b15d8
Rename unhandled CPU exception
2016-07-05 11:10:39 -05:00
9cdca5a32b
Unhandled interrupt will halt execution
2016-07-04 17:07:57 -05:00
1c73753507
don't try to override native C++ data type
2016-06-06 19:05:05 -07:00
6ca8ba16fc
Changed bool typedef from int to unsigned char.
2016-05-10 23:53:39 +10:00
544942cc64
Added MSVC bindings for uc_reg_write_batch() and uc_reg_read_batch() and fixed UC_HOOK_INSN hooking.
2016-05-10 23:29:11 +10:00
c45f791dd2
delete include/unicorn/platform.h
2016-04-30 08:41:12 +08:00
acd88856e1
add batched reg access
2016-04-04 20:51:38 -07:00
338fb0e81b
Fix a typo in uc_hook_add documentation.
2016-03-07 17:52:08 +01:00
1087ba9dea
[query] add UC_QUERY_PAGE_SIZE uc_query helper
...
Return the current page size used by the current arch.
Useful to call uc_mem_map() with memory/size aligned.
Signed-off-by: Nicolas PLANEL <nplanel@redhat.com >
2016-03-04 15:54:24 +11:00
871cdb692f
Merge branch 'hook'
2016-02-17 09:37:17 +08:00
f267ff2b17
Update unicorn.h
...
remove an outdated line on UC_QUERY_MODE
2016-02-15 10:27:20 +08:00
0822c0af85
bump API version to 1.0
2016-02-11 08:05:15 +08:00
a7a1dcc661
uc_hook_add(): add begin & end arguments for all hook types. also update Python binding after this change
2016-02-11 08:02:13 +08:00
a2ef52172c
add combination hook type UC_HOOK_MEM_VALID to intercept all valid memory access
2016-01-31 13:12:34 +08:00
26d3b1e7d6
Added ppc 32bit mode and added sparc mode checks to bring it in line with other archs
2016-01-24 22:27:33 +11:00
6f3d48077e
rename UC_QUERY_ARM_MODE to a more generic name UC_QUERY_MODE. make all bindings support this new constant
2016-01-24 01:08:23 +08:00
4dbad9aa9b
add new API uc_query() to query internal status of emulator at runtime
2016-01-23 17:14:44 +08:00
d79925f477
sparc: add SPARC32 mode (= UC_MODE_32)
2016-01-23 10:48:18 +08:00
288ef1df0a
Fix uc_mode usage in source code
2016-01-23 12:10:12 +11:00