mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 04:28:20 +00:00
Support asm.bytes in agJ (#9285)
This commit is contained in:
parent
acc12c9137
commit
1f3708feef
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user