Make ARM and MIPS capstone plugins by default (previous plugins renamed to .gnu)

This commit is contained in:
pancake 2014-06-25 03:08:13 +02:00
parent d98acc233d
commit 74af39034d
8 changed files with 10 additions and 9 deletions

View File

@ -449,7 +449,7 @@ static int set_reg_profile(RAnal *anal) {
}
struct r_anal_plugin_t r_anal_plugin_arm = {
.name = "arm",
.name = "arm.gnu",
.arch = R_SYS_ARCH_ARM,
.license = "LGPL3",
.bits = 32 | 64,

View File

@ -153,6 +153,7 @@ static int analop(RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len) {
case ARM_INS_VQMOVN:
op->type = R_ANAL_OP_TYPE_MOV;
break;
case ARM_INS_CMP:
case ARM_INS_TST:
op->type = R_ANAL_OP_TYPE_CMP;
break;
@ -285,7 +286,7 @@ static int set_reg_profile(RAnal *anal) {
}
RAnalPlugin r_anal_plugin_arm_cs = {
.name = "arm.cs",
.name = "arm",
.desc = "Capstone ARM analyzer",
.license = "BSD",
.arch = R_SYS_ARCH_ARM,

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2010-2013 - pancake */
/* radare - LGPL - Copyright 2010-2014 - pancake */
#include <string.h>
#include <r_types.h>
@ -470,7 +470,7 @@ static int mips_set_reg_profile(RAnal* anal){
}
struct r_anal_plugin_t r_anal_plugin_mips = {
.name = "mips",
.name = "mips.gnu",
.desc = "MIPS code analysis plugin",
.license = "LGPL3",
.arch = R_SYS_ARCH_MIPS,

View File

@ -378,7 +378,7 @@ static int set_reg_profile(RAnal *anal) {
}
RAnalPlugin r_anal_plugin_mips_cs = {
.name = "mips.cs",
.name = "mips",
.desc = "Capstone MIPS analyzer",
.license = "BSD",
.arch = R_SYS_ARCH_MIPS,

View File

@ -194,7 +194,7 @@ static int assemble(RAsm *a, RAsmOp *op, const char *buf) {
}
RAsmPlugin r_asm_plugin_arm = {
.name = "arm",
.name = "arm.gnu",
.arch = "arm",
.bits = 16|32|64,
.desc = "Acorn RISC Machine CPU",

View File

@ -49,7 +49,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
}
RAsmPlugin r_asm_plugin_arm_cs = {
.name = "arm.cs",
.name = "arm",
.desc = "Capstone ARM disassembler",
.license = "BSD",
.arch = "arm",

View File

@ -93,7 +93,7 @@ static int assemble(RAsm *a, RAsmOp *op, const char *str) {
}
RAsmPlugin r_asm_plugin_mips = {
.name = "mips",
.name = "mips.gnu",
.arch = "mips",
.license = "GPL3",
.bits = 32|64,

View File

@ -45,7 +45,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
}
RAsmPlugin r_asm_plugin_mips_cs = {
.name = "mips.cs",
.name = "mips",
.desc = "Capstone MIPS disassembler",
.license = "BSD",
.arch = "mips",