mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 15:41:38 +00:00
Fix #320 - Performs trivials simplifications when using asm.pseudo
This commit is contained in:
parent
9c94e4a2dc
commit
2ba050c605
@ -143,19 +143,21 @@ eprintf ("db = %p\n", db);
|
||||
" 'j' output in json\n"
|
||||
" 'q' simple quiet output\n"
|
||||
"Actions:\n"
|
||||
" io [file] ; load info from file (or last opened) use bin.baddr\n"
|
||||
" ia ; show all info (imports, exports, sections..)\n"
|
||||
" ic ; list classes\n"
|
||||
" id ; debug information (source lines)\n"
|
||||
" ie ; entrypoint\n"
|
||||
" ih ; headers\n"
|
||||
" ii ; imports\n"
|
||||
" iI ; binary info\n"
|
||||
" il ; libraries\n"
|
||||
" is ; symbols\n"
|
||||
" iS ; sections\n"
|
||||
" ir/iR ; relocs\n"
|
||||
" iz ; strings\n");
|
||||
" io [file] load info from file (or last opened) use bin.baddr\n"
|
||||
" ik [query] key-value database from RBinObject\n"
|
||||
" ia show all info (imports, exports, sections..)\n"
|
||||
" ic list classes\n"
|
||||
" id debug information (source lines)\n"
|
||||
" ie entrypoint\n"
|
||||
" ih headers\n"
|
||||
" ii imports\n"
|
||||
" iI binary info\n"
|
||||
" il libraries\n"
|
||||
" is symbols\n"
|
||||
" iS sections\n"
|
||||
" ir/iR relocs\n"
|
||||
" iz strings\n"
|
||||
);
|
||||
break;
|
||||
case '*': mode = R_CORE_BIN_RADARE;
|
||||
case 'j': if (*input=='j') mode = R_CORE_BIN_JSON;
|
||||
|
@ -38,10 +38,15 @@ static int replace(int argc, const char *argv[], char *newstr) {
|
||||
{ "je", "je 1"},
|
||||
{ "push", "push 1"},
|
||||
{ "pop", "pop 1"},
|
||||
{ "ret", "ret"},
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
if (argc>2 && !strcmp (argv[0], "xor")) {
|
||||
if (!strcmp (argv[1], argv[2])) {
|
||||
argv[0] = "mov";
|
||||
argv[2] = "0";
|
||||
}
|
||||
}
|
||||
for (i=0; ops[i].op != NULL; i++) {
|
||||
if (!strcmp (ops[i].op, argv[0])) {
|
||||
if (newstr != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user