Commit Graph

2065 Commits

Author SHA1 Message Date
mio
bccc7f2fb7
Remove NULL tcg arg and add a test for sysenter 2021-10-04 18:50:42 +02:00
lazymio
2aebf93143
Merge pull request #1443 from bet4it/reg
Support to read ST registers in rust bindings
2021-10-04 18:30:30 +02:00
mio
e1204d8977
Specify the content type 2021-10-04 18:09:44 +02:00
mio
b9918b74d7
Online publish when tagging 2021-10-04 17:49:04 +02:00
lazymio
91e84bf304
Merge pull request #1451 from chfl4gs/dev
Action for PyPI publishing
2021-10-04 17:37:45 +02:00
Bet4
23e01a4862 Support to read ST registers in rust bindings 2021-10-04 23:18:05 +08:00
chfl4gs
e571dc278a PyPI publishing 2021-10-04 22:22:41 +08:00
Nguyen Anh Quynh
e8bd7ca087 bindings: update X86 register constants 2021-10-04 19:41:41 +08:00
mio
46e8ac03ad
Remove useless x86 registers according to #1440 2021-10-04 11:03:56 +02:00
mio
ebb468d042
Fix msvc build 2021-10-04 10:44:30 +02:00
mio
df5daed522
Manually fix for #219 2021-10-03 23:27:12 +02:00
mio
65e1a17386
Remove winsocks 2021-10-03 23:25:26 +02:00
mio
81942e9097
Manually fix for #1232 2021-10-03 23:23:55 +02:00
mio
2d043d387d
Change mips model to add DSP 2021-10-03 23:10:39 +02:00
Nguyen Anh Quynh
0a7223996d bindings: update constants from ARM registers 2021-10-04 01:04:43 +08:00
Nguyen Anh Quynh
54e7e3b9ef bindings: add Rust 2021-10-04 01:01:43 +08:00
Nguyen Anh Quynh
5460bfd97d ChangeLog 2021-10-03 22:37:22 +08:00
Nguyen Anh Quynh
10f8106c24 cleanup Github workflows 2021-10-03 22:30:52 +08:00
Nguyen Anh Quynh
98b684d33e remove Travis 2021-10-03 22:28:22 +08:00
Nguyen Anh Quynh
af76a71df1 add .github/ 2021-10-03 22:27:18 +08:00
Nguyen Anh Quynh
ebcf4e2325 logo in README 2021-10-03 22:17:51 +08:00
Nguyen Anh Quynh
aaaea14214 import Unicorn2 2021-10-03 22:14:44 +08:00
Bet4
772558119a
Add missing constants in rust bindings (#1423)
* Update arm64.rs

* Update mips.rs
2021-07-08 20:43:00 +08:00
Nguyen Anh Quynh
52f90cda02 update ChangeLog 2021-05-26 23:07:07 +08:00
Bet4
9c6134ca91
Add Rust bindings to master branch (#1401)
* Rust bindings (#1295)

* rust bindings init

* updated bindings/README

* Improved Rust bindings: (#1309)

* Added basic block hooking
* Changed confusing struct naming. Before: Protection::All -> R,W,X, Now: Permission::All -> R,W,X
* Fixed issue with remove_hook(..). Implementation tried to remove hook from incorrect hashmap.
* Made unused private vmmap(..) public.

* Improve Rust bindings (#1367)

* fixed tests

* constant readability

* HookType as bitflags

* Mode as bitflags

* improve bitflags

* cargo fmt

* removed unnecessary "as usize"

* fixed buggy deallocation of uc_context structs

* Remove data field in rust bindings

Co-authored-by: Lukas Seidel <pr0me@users.noreply.github.com>
Co-authored-by: Nikolas Eller <nikolas.e@mail.de>
Co-authored-by: Simon Wörner <git@simon-woerner.de>
Co-authored-by: floesen <floesen@users.noreply.github.com>
2021-05-26 23:05:12 +08:00
Nguyen Anh Quynh
668c43c94d update ChangeLog 2021-05-16 21:39:31 +08:00
Nguyen Anh Quynh
51665db668 Merge branch 'master' of github.com:unicorn-engine/unicorn 2021-05-16 21:38:17 +08:00
Nguyen Anh Quynh
2874435d2f bump version to 1.0.3 2021-05-16 21:38:08 +08:00
Sun Daowen
5790938452
compile on VS2008/VS2010 (#1397)
Compiling with Win32 Release/MinSizeRel/RelWithDebInfo in VS2008 will cause "fatal error C1063: compiler limit: compiler stack overflow" problem.
Compiling with Win32 Debug or x64 does not have this problem.
You can easily bypass this problem by changing the optimization options /O1 and /O2 to /Od.
In VS2010, when _INTPTR is 0 or 1, UINTPTR_MAX is 0xFFFFFFFF.
2021-05-16 21:36:33 +08:00
Nguyen Anh Quynh
db1b6342a3 update Changelog for 1.0.3 2021-05-14 18:36:54 +08:00
lazymio
225d387325
Fix wrong sync after UC_ERR_[READ, WRITE, FETCH]_[UNMAPPED, PROT] (#1368)
* Fix wrong sync after UC_ERR_[READ, WRITE, FETCH]_[UNMAPPED, PROT]

Note that:
1. We only guarantee the pc (and other internal states) is correct
if and only of `uc_emu_start` returns without any error (or errors
have been handled in callbacks.).
2. If memory read/write error isn't handled by hooks, the state is
undefined and the pc is probably wrong if no hook is installed.

This fixes #1323.

* Rename variables

* Add note in unicorn.h

* Refine test_i386_invalid_mem_read_in_tb
2021-05-12 00:10:45 +08:00
Sven Almgren
58c50c4be7
X86 instruction FTST was incorrectly overwriting ST0 instead of FT0 (#1372)
* X86 instruction FTST was incorrectly overwriting ST0 instead of FT0

* credits update
2021-05-08 18:45:14 +08:00
Nguyen Anh Quynh
d664a838f7
Update CREDITS.TXT 2021-05-05 23:35:50 +08:00
insane-shane
4f9a6cfcf3
Handle exceptions raised in Python hook functions (#1387) 2021-04-26 00:35:56 +08:00
lazymio
b0f1e46f61
Fix fpip (#1385)
* Revert partial #74

* Import fix from https://lists.nongnu.org/archive/html/qemu-devel/2021-04/msg02868.html

* Fix capstone usage
2021-04-26 00:32:42 +08:00
Bet4
811e77c7aa
Support querying architecture mode besides arm (#1389) 2021-04-26 00:31:29 +08:00
lazymio
f1f59bac55
The UC instance must be created twice to reproduce the problem (#1382)
* The UC instance must be created twice to reproduce the problem

* Fix coding style
2021-04-10 03:30:24 +08:00
w4kfu-synacktiv
21ec6e8f83
Add ARM BE8 support (#1369)
Co-authored-by: w4kfu <gw4kfu@gmail.com>
2021-03-31 21:22:35 +08:00
Duncan Ogilvie
4440310f14
Modernize CMake (#1373) 2021-03-30 23:32:56 +08:00
lazymio
bf1713d9e0
Add arm ite blocks samples from #853 (#1381) 2021-03-30 12:06:26 +08:00
Rami Ali
34ddafcbcf
Fix pausing within Thumb2 ITE blocks (#853) (#880)
Co-authored-by: Rami Ali <flowergrass@users.noreply.github.com>
2021-03-29 22:54:45 +08:00
David CARLIER
7ca7e8a79d
qemu_getauxval FreeBSD implementation backport (#1366) 2020-12-31 18:53:36 +08:00
iGio90
e42e58cd91
Remove deprecated javah and build with javac (#1360)
Hi, I was having trouble building java bindings on latest ubuntu. I installed jdk8 which has javah but somehow was failing during install (missing compiled classes even if they were in place in unicorn/). I guess mixing with jdk11 pop the issue. 
Using javac from most recent jdk works very fine.
2020-12-23 13:28:17 +08:00
Carlo Bramini
4b34042e02
Make Unicorn buildable with MinGW (#1364)
* [WIN32] Allow to build also with MinGW

* [WIN32] Fix build for MinGW
2020-12-23 13:27:06 +08:00
Nguyen Anh Quynh
0bebb3e183 cmake: enable UNICORN_HAS_ARMEB when ARM is on 2020-11-17 15:13:16 +08:00
Peter Meerwald-Stadler
770d5679c3
Fix some typos in include files (#1350) 2020-10-29 11:16:45 +08:00
smeng9
5e4423a419
Update binding list (#1349) 2020-10-28 09:47:59 +08:00
pkubaj
95bc0bdc21
Fix build with LLVM on powerpc64(le) (#1347)
Conflicting symbols need to be undefined before including altivec.h.
2020-10-25 07:34:57 +08:00
Nguyen Anh Quynh
4c054b9f0d update SPONSORS.TXT 2020-10-23 00:03:54 +08:00
Nguyen Anh Quynh
886acbf599 add SPONSORS.TXT 2020-10-21 19:34:41 +08:00