aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/bruiserffi.c6
-rw-r--r--bruiser/bruiserffi.h2
2 files changed, 5 insertions, 3 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;
}
diff --git a/bruiser/bruiserffi.h b/bruiser/bruiserffi.h
index e3afda0..567a6f6 100644
--- a/bruiser/bruiserffi.h
+++ b/bruiser/bruiserffi.h
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*/
/**********************************************************************************************************************/
-#include <capstone/capstone.h>
+//#include <capstone/capstone.h>
#include <ffi.h>
#include <stdint.h>
/**********************************************************************************************************************/