Commit Graph

1058 Commits

Author SHA1 Message Date
Nguyen Anh Quynh b69b5596bf Merge branch 'feature/python-out-of-tree' of https://github.com/frida/capstone into outoftree 2014-05-01 21:20:21 +08:00
Ole André Vadla Ravnås e3ef6659ed Makefile: add support for building python binding out-of-tree 2014-05-01 00:53:01 +02:00
Nguyen Anh Quynh 0081f00e83 Merge branch 'next' of https://github.com/aquynh/capstone into next 2014-04-30 14:26:53 +08:00
Nguyen Anh Quynh ca057fa8f6 x86: identation 2014-04-30 14:26:10 +08:00
Nguyen Anh Quynh 375f03c230 Makefile: build tests in the old way if BUILDDIR is not defined. this fixes a bug introduced by some recent changes by Ole André Vadla Ravnås 2014-04-30 07:19:18 +08:00
Ole André Vadla Ravnås 7a7343945d Makefile: allow `BUILDDIR` to be a relative path 2014-04-30 00:06:41 +02:00
Ole André Vadla Ravnås 544ba8bf0b Makefile: fix implicit rule pre-requisite 2014-04-30 00:06:12 +02:00
Ole André Vadla Ravnås c920daff13 Makefile: fix out-of-tree build regression
Because `BUILDDIR` may be an absolute path.
2014-04-29 23:02:36 +02:00
Nguyen Anh Quynh 6ae472fe36 Makefile: avoid redefining BUILDDIR, so we can remove its directory in clean target 2014-04-29 16:29:55 +08:00
Nguyen Anh Quynh 5519a68812 Makefile: fix clean targets and put all test binaries under BUILDIR/tests/ 2014-04-29 16:24:30 +08:00
Nguyen Anh Quynh df60ada2ad Merge branch 'feature/build-out-of-tree' of https://github.com/frida/capstone into config 2014-04-29 15:13:55 +08:00
Ole André Vadla Ravnås 35f937d2db Adapt core build system to allow building out-of-tree
Simply define `BUILDDIR` to where you would like build output to go.
2014-04-29 09:00:34 +02:00
Nguyen Anh Quynh e31327da14 rename USE_SYS_DYN_MEM to CAPSTONE_USE_SYS_DYN_MEM for consistency with other options 2014-04-29 14:25:15 +08:00
Nguyen Anh Quynh 38863f20b9 minor fix for COMPILE.TXT 2014-04-29 14:21:15 +08:00
Nguyen Anh Quynh 18759b3194 update COMPILE.TXT after the last change in config.mk 2014-04-29 14:00:16 +08:00
Nguyen Anh Quynh dc09a9a099 allow user to customize USE_SYS_DYN_MEM, DIET & X86_REDUCE when compile with make.sh, so there is no need to edit config.mk 2014-04-29 12:59:01 +08:00
Nguyen Anh Quynh 6023ef7843 Disassembler -> Disassembly 2014-04-29 11:21:04 +08:00
Nguyen Anh Quynh 17874d084e x86: handle NOP instruction 0f18* 2014-04-29 11:16:21 +08:00
Nguyen Anh Quynh 77af9fb9c6 Allow user to specify compiler optimization flags via CFLAGS at compile time. suggested by Ole André Vadla Ravnås 2014-04-29 07:11:55 +08:00
Nguyen Anh Quynh 2c5e3e5833 x86: allow 0x66 & 0x67 prefixes to be put anywhere in front of an instruction 2014-04-28 15:46:52 +08:00
Nguyen Anh Quynh 4f2049b346 allow to set archs to be compiled in from environment variable CAPSTONE_ARCHS 2014-04-28 11:53:19 +08:00
Nguyen Anh Quynh 7751fbe57b header files: Disassembler -> Disassembly 2014-04-28 11:23:14 +08:00
Nguyen Anh Quynh 2cff6f61fc x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach 2014-04-28 11:19:44 +08:00
Nguyen Anh Quynh a88c1164bf move the macro MIN to utils.h 2014-04-27 13:38:04 +08:00
Nguyen Anh Quynh 1b4864ac46 x86: fix comments on MOVcr, MOVdr, MOVrc, MOVrd 2014-04-25 13:44:31 +08:00
Nguyen Anh Quynh e93179b851 x86: BOUND instruction uses dword & qword for boundary array, but not memory reference 2014-04-25 11:18:40 +08:00
Nguyen Anh Quynh 7437a41bfa x86: minor fixes for comments on MOV32cr etc: this is related to 64bit code as well 2014-04-25 10:51:37 +08:00
Nguyen Anh Quynh fe94c2b270 x86: BOUND opcode is reused by EVEX instruction set, so must be handled properly 2014-04-25 10:47:50 +08:00
Nguyen Anh Quynh 96bda4f8b4 x86: MOV32cr & co. work for x64, not only x86. thank Joxean Koret for the help to verify this. 2014-04-24 23:03:26 +08:00
Nguyen Anh Quynh 191c070cac suite: update x86odd.py 2014-04-24 22:50:54 +08:00
Nguyen Anh Quynh 0902bf2a25 x86: handle MOV32cr, MOV32dr, MOV32rc, MOV32rd 2014-04-24 22:46:25 +08:00
Nguyen Anh Quynh 2a9c0e0396 x86: fix a bug when sign-extend immediate for Ev. backport from upstream LLVM 2014-04-23 16:19:15 +08:00
Nguyen Anh Quynh 0eefeb9335 java: add FSTPNCE instruction following the core update 2014-04-23 12:50:20 +08:00
Nguyen Anh Quynh 2ef89c6137 python: add FSTPNCE instruction following the core update 2014-04-23 12:49:48 +08:00
Nguyen Anh Quynh fa697076b1 x86: handle more tricky instructions.
- support undocumented instructions FSTP & FSTPNCE. see http://blogs.technet.com/b/mmpc/archive/2013/06/24/investigation-of-a-new-undocumented-instruction-trick.aspx
- TEST instructions with opcode 0xF6, 0xF7 (MRM1r)
2014-04-23 12:41:16 +08:00
Nguyen Anh Quynh d71106047d suite: add some new instructions to x86odd.py 2014-04-23 12:40:58 +08:00
Nguyen Anh Quynh 4cc304096c suite: add 'hint nop' instruction to x86odd.py 2014-04-22 19:59:20 +08:00
Nguyen Anh Quynh 2ce77133f5 x86: support some tricky instructions
- NOP instructions with encoding 0f {19-1f}. see http://code.google.com/p/corkami/wiki/x86oddities?show=content
- TEST instructions with opcode 0xF6, 0xF7 (MRM1m)
- Fix arithmetic instructions with opcode 0x82: only available in Non64bit mode
2014-04-22 17:49:54 +08:00
Nguyen Anh Quynh 33e16362d6 x86: support 0x82 opcode for Arithmetic instructions 2014-04-20 11:32:00 +08:00
Nguyen Anh Quynh a542efe31b java: add SAL instruction following the core udpate 2014-04-17 09:41:13 +08:00
Nguyen Anh Quynh babb22e009 python: add SAL instruction following the core udpate 2014-04-17 09:40:38 +08:00
Nguyen Anh Quynh 2b2e11b789 python: make cs_disasm_lite() support Python3 2014-04-16 21:20:34 +08:00
Nguyen Anh Quynh 4171e487cb suite: make x86odd support python3 2014-04-16 20:44:10 +08:00
Nguyen Anh Quynh a6519b08eb suite: add x86odd.py 2014-04-16 20:03:55 +08:00
Nguyen Anh Quynh 444d2bd3c3 python: expose cs_disasm_lite() 2014-04-16 20:00:06 +08:00
Nguyen Anh Quynh 6f56ff5663 x86: handle SAL instructions. bug reported by Attila Suszter & Ange Albertini 2014-04-16 17:29:34 +08:00
Nguyen Anh Quynh ac673ae544 make.sh: only handle special pkgconfig install for OSX if we are not installing in Brew env 2014-04-14 23:58:28 +08:00
Nguyen Anh Quynh 1efa9c11a0 SKIPDATA: add info about the first argument of callback function 2014-04-14 21:48:59 +08:00
Nguyen Anh Quynh 2daab25891 python: python3 binding requires python3 installed 2014-04-14 16:34:30 +08:00
Nguyen Anh Quynh e5d30e6980 python: add install3 target for installing Python3 package 2014-04-14 16:33:04 +08:00