Nguyen Anh Quynh
1182d25759
simplify ARCH_group_name() by using lookup table as suggested by @learn_more. also added the missing group name for GRP_PRIVILEGE
2015-04-27 12:13:34 +08:00
Nguyen Anh Quynh
58eb07355e
x86: avoid duplicating registers returned by cs_regs_access(). also add *CX registers to regs_read[], regs_write[] for REP* instructions
2015-04-02 15:18:33 +08:00
Nguyen Anh Quynh
efffe787d1
Add new API and start to provide access information for instruction operands
...
- New API cs_regs_access() that provide registers being read & modified by instruction
- New field cs_x86_op.access provides access info (READ, WRITE) for each operand
- New field cs_x86.eflags provides EFLAGS affected by instruction
- Extend cs_detail.{regs_read, regs_write} from uint8_t to uint16_t type
2015-03-25 15:02:13 +08:00
Nguyen Anh Quynh
bfcaba5851
2015
2015-03-04 17:45:23 +08:00
pancake
9c10ace558
Make pkg-config and source consistent with installation
2015-02-24 05:03:04 +01:00
Nguyen Anh Quynh
4b6b15fcb1
fix more MSVC warnings
2014-08-26 15:57:04 +08:00
Nguyen Anh Quynh
cae09bf543
replace offset_of with offsetof from stddef.h
2014-06-17 14:58:39 +08:00
Nguyen Anh Quynh
69582d71ae
initialize cs_insn.detail by properly zero-out right members for each arch
2014-06-09 17:50:01 +07:00
Nguyen Anh Quynh
583baba8c4
remove more dead code
2014-05-28 12:57:59 +08:00
Nguyen Anh Quynh
19146e91a3
replace strcasecmp() with strcmp(). this also simlifies MSVC support a bit
2014-05-28 12:41:31 +08:00
Nguyen Anh Quynh
2a33afe6e8
msvc: make MSVC shutup on strncpy()
2014-05-28 00:24:33 +08:00
Nguyen Anh Quynh
2b68355a67
msvc: support strcpy() with strcpy_s()
2014-05-28 00:01:30 +08:00
Nguyen Anh Quynh
e76abf47e1
move prototype of strcasecmp for MSVC into utils.h, and remove platform.h
2014-05-15 15:02:52 +08:00
Nguyen Anh Quynh
6023ef7843
Disassembler -> Disassembly
2014-04-29 11:21:04 +08:00
Nguyen Anh Quynh
a88c1164bf
move the macro MIN to utils.h
2014-04-27 13:38:04 +08:00
Nguyen Anh Quynh
fc83a439e5
add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40%
2014-02-22 23:26:27 +08:00
Nguyen Anh Quynh
7f6db24a8f
remove now redundant insn_reverse_id() after alias handling simplifications
2014-02-18 17:58:47 +08:00
Nguyen Anh Quynh
a9ffb440f8
replace strdup() with our cs_strdup(), which call cs_mem_malloc() internally
2014-01-15 18:27:01 +08:00
Nguyen Anh Quynh
c7404075ff
move internal memory management declarations from utils.h to cs_priv.h
2014-01-05 11:35:47 +08:00
Nguyen Anh Quynh
24bf0d9079
add new option CS_OPT_MEM for cs_option(): this enable user-defined dynamic memory management. idea proposed by Pancake
2014-01-05 11:19:04 +08:00
Nguyen Anh Quynh
f1d489b949
ppc: support details information
2014-01-05 00:00:05 +08:00
Nguyen Anh Quynh
b265406960
cache insns for fast lookup in mapping.c. based on the idea of Dang Hoang Vu
2014-01-03 17:08:58 +08:00
Nguyen Anh Quynh
ae3649ff71
rename some C header guards to be without _ as prefix to follow naming convention of C language. suggested by Markus Elfring
2014-01-02 13:15:07 +08:00
Nguyen Anh Quynh
f4af98c0b5
refine insn_map structure to further reduce binary size: this makes .SO file around 120K smaller
2014-01-01 00:13:01 +08:00
Nguyen Anh Quynh
18103e4a22
size down insn_map structructure by reducing the size of some fields. this alone makes lib binary size 2.6MB smaller
2013-12-20 17:35:15 +08:00
Nguyen Anh Quynh
bed90914e2
x86: calculate op_size properly in special cases regarding rax, eax, ax, al registers
2013-12-13 18:28:38 +08:00
pancake
f0e4eed89d
Use const on all read-only buffers
2013-12-11 22:14:42 +01:00
Nguyen Anh Quynh
462f291b9f
ARM: Fix bunch of issues
...
- Bugs
- start switching to more friendly asm: for number under 10, print without hex in front
2013-12-11 17:35:27 +08:00
Nguyen Anh Quynh
f35e2ad35c
add @regs_read_count, @regs_write_count, @groups_count to @cs_insn. bump API to 1.4
2013-12-03 11:10:26 +08:00
Nguyen Anh Quynh
ad61c49288
arm64: handle decomposer properly for alias insn
2013-11-30 16:23:31 +08:00
Nguyen Anh Quynh
26ee41aa67
initial import
2013-11-27 12:11:31 +08:00