Commit Graph

4281 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
4649071e2d python: add ERR_OPTION, and use @syntax setter/getter rather than option() method to set X86 syntax 2013-12-06 00:44:44 +08:00
Nguyen Anh Quynh
041e25dd66 add CS_ERR_OPTION type. cs_option() returns this error code on invalid option 2013-12-06 00:37:32 +08:00
Nguyen Anh Quynh
f9e3216568 x86: on mem reference, put scale after index register to be consistent with Intel style 2013-12-05 21:58:31 +08:00
Nguyen Anh Quynh
a236902656 fix CS_INSN_OFFSET: calculate offset based on the address of related instruction only 2013-12-05 20:21:09 +08:00
Nguyen Anh Quynh
a84d747f7c fix typo in CS_INSN_OFFSET 2013-12-05 18:33:34 +08:00
Nguyen Anh Quynh
3829415ce6 HACK 2013-12-05 18:30:53 +08:00
Nguyen Anh Quynh
bb5460348b add CS_INSN_OFFSET macro, so we can easily calculate offset of one insn, given its position in its array 2013-12-05 18:29:51 +08:00
Nguyen Anh Quynh
7f36d26245 more notes for HACK 2013-12-05 10:25:51 +08:00
Nguyen Anh Quynh
64f5033ceb CREDITS.TXT 2013-12-05 10:08:03 +08:00
Nguyen Anh Quynh
4d70daf83d note that Intel is default syntax 2013-12-05 09:50:50 +08:00
Nguyen Anh Quynh
d912f91390 add a newline between constant types in autogen constants 2013-12-05 00:02:37 +08:00
Nguyen Anh Quynh
a2f825ff07 support comments in autogen files, so constant files are more friendly 2013-12-04 23:56:24 +08:00
Nguyen Anh Quynh
26a43715d9 bump API to 1.7 due to the addition of @bytes to cs_insn 2013-12-04 23:08:32 +08:00
Nguyen Anh Quynh
79976c1370 fix some comments in capstone.h 2013-12-04 23:03:13 +08:00
Nguyen Anh Quynh
8f13f3c6ab rename @hex_code to @bytes, and move it to next to @size 2013-12-04 22:57:04 +08:00
Nguyen Anh Quynh
c45b1588ef Merge branch 'master' of https://github.com/joxeankoret/capstone into hexcode 2013-12-04 19:28:54 +08:00
Nguyen Anh Quynh
c9b6aa1547 python: use c_char_p rather than POINTER(c_char) on prototype of cs_disasm_dyn() 2013-12-04 17:54:00 +08:00
Nguyen Anh Quynh
c389e00a1f python: wrong prototype for cs_close() causes mem leaking. bug reported by Joxean Koret 2013-12-04 17:37:14 +08:00
Nguyen Anh Quynh
641b78375f x86: fix relative call. bug reported by Joxean Koret 2013-12-04 16:56:40 +08:00
Nguyen Anh Quynh
c6975b72d6 Merge pull request #23 from danghvu/master
Fix a bug const generator does not account for assigning number as enum constant
2013-12-03 22:37:02 -08:00
danghvu
b09c122c14 Use casting instead of isdigit, incase negative number 2013-12-04 00:30:45 -06:00
danghvu
b4b6fea875 Fix a bug const generator does not account for assigning number as enum const 2013-12-04 00:19:48 -06:00
Joxean
367a4df66f Partially reverted previous commit
I added mistakenly various local-only changes.
2013-12-04 07:15:45 +01:00
Joxean
114df0ef2a Added @hex_code member
It's used to retrieve the bytes of the instruction.
2013-12-04 07:11:32 +01:00
Nguyen Anh Quynh
4b95d9fa67 bump API to 1.6 to reflect the addition of the new API cs_option() 2013-12-04 13:48:52 +08:00
Nguyen Anh Quynh
e60590baf1 fix bindings to reflect the last commit 2013-12-04 12:46:41 +08:00
Nguyen Anh Quynh
f8db76ab94 arm64: correct value of ARM64_SFT_ROR 2013-12-04 12:37:55 +08:00
Nguyen Anh Quynh
6ae5a63993 update CREDITS 2013-12-04 12:14:28 +08:00
Nguyen Anh Quynh
ea5b79d058 move some alias registers around to after REG_MAX. this seems to fix some issues of clang, which struggles with enum that assign value from other enum 2013-12-04 12:10:47 +08:00
Nguyen Anh Quynh
b39ef0bfa6 arm: added some alias registers 2013-12-04 11:52:28 +08:00
Nguyen Anh Quynh
67f1297b33 java: temporarily remove SYNTAX_ATT option due to the newly added cs_option() API. this will be fixed when cs_option() is supported in java 2013-12-04 10:27:50 +08:00
Nguyen Anh Quynh
e4229c6939 merge with option branch 2013-12-04 10:24:12 +08:00
Nguyen Anh Quynh
c3a0a2c3d3 python: fix a memory leaking in cs_disasm_quick(). bug reported by Joxean Koret 2013-12-04 09:51:12 +08:00
Nguyen Anh Quynh
39da42692d arm: fix a memory leaking bug 2013-12-04 09:49:33 +08:00
Nguyen Anh Quynh
da8adaded2 API cs_option(): @value now has size_t, so mapping opaque pointer is possible for future options 2013-12-04 09:44:07 +08:00
Nguyen Anh Quynh
00dff9fa7b Merge pull request #21 from danghvu/master
Fix java Segfault on new API
2013-12-03 17:41:22 -08:00
danghvu
2c37cd49fc Minor fix in java coding style 2013-12-03 12:28:10 -06:00
danghvu
9e51977205 Fix java binding to reflect new api 2013-12-03 19:21:08 +01:00
Nguyen Anh Quynh
c618db4473 change option names for cs_option(), and update python binding accordingly to support new cs_option() 2013-12-04 00:05:04 +08:00
Nguyen Anh Quynh
b8ce68ec05 change cs_option() API to be more flexible with option value 2013-12-03 23:45:08 +08:00
Nguyen Anh Quynh
daaed13cc1 python: update to the newly added cs_option() API 2013-12-03 22:18:28 +08:00
Nguyen Anh Quynh
4a60a56be6 handle cs_option() according to arch & mode 2013-12-03 21:56:54 +08:00
Nguyen Anh Quynh
01aba002e3 add cs_option() API. move ATT & Intel syntax here, rather than having them as CS_MODE, which is wrong 2013-12-03 21:00:09 +08:00
Nguyen Anh Quynh
a5f0b1c3c3 mips: map register 9 to 'sp' rather than '29' 2013-12-03 20:13:48 +08:00
Nguyen Anh Quynh
6d552e5540 x86: fix bug in relative jump. reported by Joxean 2013-12-03 18:23:53 +08:00
Nguyen Anh Quynh
3fa53140b8 update CREDITS 2013-12-03 17:26:57 +08:00
Nguyen Anh Quynh
9cf170bcaa mips: correct the forgotten size_t address in the last API change 2013-12-03 15:17:41 +08:00
Nguyen Anh Quynh
5df9e4be91 tests: change variable address's type to uint64_t 2013-12-03 15:02:12 +08:00
Nguyen Anh Quynh
88db228cc9 bindings: do not delete constant files when on clean target of Makefile 2013-12-03 15:01:15 +08:00
Nguyen Anh Quynh
22fcba13f9 java: add some missing CS_MODE 2013-12-03 14:34:12 +08:00