Add to field in axfj

This commit is contained in:
pancake 2017-04-08 23:56:36 +02:00
parent bf15457b96
commit 2021f4985d

View File

@ -4121,8 +4121,8 @@ static bool cmd_anal_refs(RCore *core, const char *input) {
r_core_read_at (core, ref->at, buf, 12);
r_asm_set_pc (core->assembler, ref->at);
r_asm_disassemble (core->assembler, &asmop, buf, 12);
r_cons_printf ("{\"from\":%" PFMT64d ",\"type\":\"%c\",\"opcode\":\"%s\"}%s",
ref->at, ref->type, asmop.buf_asm, iter->n? ",": "");
r_cons_printf ("{\"from\":%" PFMT64d ",\"to\":%" PFMT64d ",\"type\":\"%c\",\"opcode\":\"%s\"}%s",
ref->at, ref->addr, ref->type, asmop.buf_asm, iter->n? ",": "");
}
r_cons_print ("]\n");
} else if (input[1] == '*') { // axf*