mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-09 15:52:33 +00:00
Fix r_cons_break and io.cache issue (#10668)
This commit is contained in:
parent
d128c96bb9
commit
1b04403a3a
@ -314,11 +314,11 @@ R_API void r_core_anal_type_match(RCore *core, RAnalFunction *fcn) {
|
||||
const char *ret_reg = NULL;
|
||||
const char *pc = r_reg_get_name (core->dbg->reg, R_REG_NAME_PC);
|
||||
RRegItem *r = r_reg_get (core->dbg->reg, pc, -1);
|
||||
r_cons_break_push (NULL, NULL);
|
||||
r_list_foreach (fcn->bbs, it, bb) {
|
||||
ut64 addr = bb->addr;
|
||||
int i = 0;
|
||||
r_reg_set_value (core->dbg->reg, r, addr);
|
||||
r_cons_break_push (NULL, NULL);
|
||||
while (1) {
|
||||
if (r_cons_is_breaked ()) {
|
||||
goto out_function;
|
||||
|
@ -6819,8 +6819,6 @@ static int cmd_anal_all(RCore *core, const char *input) {
|
||||
}
|
||||
}
|
||||
if (input[1] == 'a') { // "aaaa"
|
||||
bool ioCache = r_config_get_i (core->config, "io.cache");
|
||||
r_config_set_i (core->config, "io.cache", 1);
|
||||
if (sdb_count (core->anal->sdb_zigns) > 0) {
|
||||
rowlog (core, "Check for zignature from zigns folder (z/)");
|
||||
r_core_cmd0 (core, "z/");
|
||||
@ -6828,10 +6826,6 @@ static int cmd_anal_all(RCore *core, const char *input) {
|
||||
rowlog (core, "Type matching analysis for all functions (afta)");
|
||||
r_core_cmd0 (core, "afta");
|
||||
rowlog_done (core);
|
||||
if (!ioCache) {
|
||||
r_core_cmd0 (core, "wc-*");
|
||||
}
|
||||
r_config_set_i (core->config, "io.cache", ioCache);
|
||||
}
|
||||
r_core_cmd0 (core, "s-");
|
||||
if (dh_orig) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user