Honor anal.timeout and better ^C handling in aaaa ##anal

This commit is contained in:
pancake 2022-05-20 21:43:42 +02:00 committed by pancake
parent 81e8d0db2f
commit 13984174ad
2 changed files with 4 additions and 0 deletions

View File

@ -436,6 +436,7 @@ R_API bool r_cons_is_breaked(void) {
if (I->timeout) {
if (r_time_now_mono () > I->timeout) {
C->breaked = true;
C->was_breaked = true;
eprintf ("\nTimeout!\n");
I->timeout = 0;
}

View File

@ -11214,6 +11214,9 @@ static int cmd_anal_all(RCore *core, const char *input) {
r_core_anal_all (core);
r_print_rowlog_done (core->print, oldstr);
r_core_task_yield (&core->tasks);
if (r_cons_is_breaked ()) {
goto jacuzzi;
}
// Run afvn in all fcns
if (r_config_get_b (core->config, "anal.vars")) {