mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 11:43:39 +00:00
/c supports cmd.hit
This commit is contained in:
parent
43b1530ffc
commit
4e037748e8
@ -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 (",");
|
||||
|
Loading…
Reference in New Issue
Block a user