mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
Make ARM and MIPS capstone plugins by default (previous plugins renamed to .gnu)
This commit is contained in:
parent
d98acc233d
commit
74af39034d
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user