From 4e037748e8732cc328642934df92c870aad0058b Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 9 Mar 2017 15:34:35 +0100 Subject: [PATCH] /c supports cmd.hit --- libr/core/cmd_search.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libr/core/cmd_search.c b/libr/core/cmd_search.c index a79396f434..24c0adf99e 100644 --- a/libr/core/cmd_search.c +++ b/libr/core/cmd_search.c @@ -1742,10 +1742,14 @@ static void do_asm_search(RCore *core, struct search_parameters *param, const ch param->from, param->to, maxhits, regexp); } if (hits) { + const char *cmdhit = r_config_get (core->config, "cmd.hit"); r_list_foreach (hits, iter, hit) { if (r_cons_is_breaked ()) { break; } + if (cmdhit && *cmdhit) { + r_core_cmdf (core, "%s @ 0x%"PFMT64x, cmdhit, hit->addr); + } switch (outmode) { case 'j': if (count > 0) r_cons_printf (",");