Support asm.bytes in agJ (#9285)

This commit is contained in:
Florian Märkl 2018-02-01 17:27:48 +01:00 committed by radare
parent acc12c9137
commit 1f3708feef

View File

@ -2398,6 +2398,7 @@ R_API int r_core_anal_graph(RCore *core, ut64 addr, int opts) {
const char *font = r_config_get (core->config, "graph.font");
int is_html = r_cons_singleton ()->is_html;
int is_json = opts & R_CORE_ANAL_JSON;
int is_json_format_disasm = opts & R_CORE_ANAL_JSON_FORMAT_DISASM;
int is_keva = opts & R_CORE_ANAL_KEYVALUE;
RConfigHold *hc;
RAnalFunction *fcni;
@ -2418,8 +2419,11 @@ R_API int r_core_anal_graph(RCore *core, ut64 addr, int opts) {
r_config_save_num (hc, "asm.lines", "asm.bytes", "asm.dwarf", NULL);
//opts |= R_CORE_ANAL_GRAPHBODY;
r_config_set_i (core->config, "asm.lines", 0);
r_config_set_i (core->config, "asm.bytes", 0);
r_config_set_i (core->config, "asm.dwarf", 0);
if (!is_json_format_disasm) {
r_config_save_num (hc, "asm.bytes", NULL);
r_config_set_i (core->config, "asm.bytes", 0);
}
if (!is_html && !is_json && !is_keva) {
const char * gv_edge = r_config_get (core->config, "graph.gv.edge");
const char * gv_node = r_config_get (core->config, "graph.gv.node");