aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiserffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser/bruiserffi.c')
-rw-r--r--bruiser/bruiserffi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bruiser/bruiserffi.c b/bruiser/bruiserffi.c
index 1972c8c..c847d10 100644
--- a/bruiser/bruiserffi.c
+++ b/bruiser/bruiserffi.c
@@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*
// @TODO-vararg xobjs are not supported
/**********************************************************************************************************************/
#include "bruiserffi.h"
-#include <capstone/capstone.h>
+//#include <capstone/capstone.h>
#include <errno.h>
#include <ffi.h>
#include <inttypes.h>
@@ -169,6 +169,7 @@ void* ffi_callX(int argc, const char** arg_string, ffi_type rtype, void* x_ptr,
void* ffi_callX_var(int argc, const char** arg_string, ffi_type rtype, void* x_ptr, void** values) {return NULL;}
/**********************************************************************************************************************/
+#if 0
#define CODE_1 "\x55\x48\x89\xe5\x48\x83\xec\x20\x89\x7d\xfc\x89\x75\xf8\x89\x55\xf4\x89\x4d\xf0\x8b\x7d\xfc\x8b\x75\xf8\xe8\xd1\xfd\xff\xff\x8b\x7d\xf4\x8b\x75\xf0\x89\x45\xec\xe8\xc3\xfd\xff\xff\x8b\x4d\xec\x1\xc1\x89\xc8\x48\x83\xc4\x20\x5d\xc3"
int capstone_test(void) {
csh handle;
@@ -195,6 +196,7 @@ int capstone_test(void) {
cs_close(&handle);
return 0;
}
+#endif
/**********************************************************************************************************************/
// @DEVI-the following lines are only meant for testing.
uint32_t add2(uint32_t a, uint32_t b) {return a+b;}
@@ -236,7 +238,7 @@ int main(int argc, char** argv) {
/*capstone tests*/
printf("\n");
- capstone_test();
+ //capstone_test();
return 0;
}