Fix #9489 - enable io.cache when using aaaa

This commit is contained in:
pancake 2018-03-01 12:49:37 +01:00
parent 8d675ab95a
commit 346ad9b899
2 changed files with 8 additions and 0 deletions

View File

@ -6252,12 +6252,19 @@ static int cmd_anal_all(RCore *core, const char *input) {
goto jacuzzi;
}
if (input[1] == 'a') { // "aaaa"
bool ioCache = r_config_get_i (core->config, "io.cache");
r_config_set_i (core->config, "io.cache", 1);
rowlog (core, "Emulate code to find computed references (aae)");
r_core_cmd0 (core, "aae $SS @ $S");
rowlog_done (core);
rowlog (core, "Analyze consecutive function (aat)");
r_core_cmd0 (core, "aat");
rowlog_done (core);
// drop cache writes is no cache was
if (!ioCache) {
r_core_cmd0 (core, "wc-*");
}
r_config_set_i (core->config, "io.cache", ioCache);
} else {
rowlog (core, "Use -AA or aaaa to perform additional experimental analysis.");
rowlog_done (core);

View File

@ -252,6 +252,7 @@ static const char *getClippy() {
" | |\n"
" `---'\n";
}
return "";
}
R_API void r_core_clippy(const char *msg) {