Haskell bindings update (#767)
* haskell: Properly handle invalid memory access * haskell: source cleanup * haskell: added support for batch reg read/write
This commit is contained in:
committed by
Nguyen Anh Quynh
parent
a40e5aae09
commit
c090f198ad
@@ -1,6 +1,7 @@
|
||||
#ifndef UNICORN_WRAPPER_H
|
||||
#define UNICORN_WRAPPER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <unicorn/unicorn.h>
|
||||
|
||||
/*
|
||||
@@ -13,6 +14,14 @@ void uc_close_wrapper(uc_engine *uc);
|
||||
*/
|
||||
void uc_close_dummy(uc_engine *uc);
|
||||
|
||||
/*
|
||||
* Wrappers for register read/write functions that accept int64_t pointers.
|
||||
*/
|
||||
uc_err uc_reg_write_wrapper(uc_engine *uc, int regid, const int64_t *value);
|
||||
uc_err uc_reg_read_wrapper(uc_engine *uc, int regid, int64_t *value);
|
||||
uc_err uc_reg_write_batch_wrapper(uc_engine *uc, int *regs, int64_t *vals, int count);
|
||||
uc_err uc_reg_read_batch_wrapper(uc_engine *uc, int *regs, int64_t *vals, int count);
|
||||
|
||||
/*
|
||||
* Wrap Unicorn's uc_free function and ignore the returned error code.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user