Skip to content

Commit

Permalink
Support 'aaa' in frida:// targets ##analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 12, 2023
1 parent 89b3865 commit 6b3f883
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libr/core/cmd_anal.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12895,6 +12895,18 @@ static int cmd_anal_all(RCore *core, const char *input) {
if (strchr (input, '?')) {
r_core_cmd_help (core, help_msg_aaa);
} else {
char *s = r_core_cmd_str (core, "dpe");
if (r_str_startswith (s, "frida://")) {
const char *io_backend = r_config_get (core->config, "dbg.backend");
if (strcmp (io_backend, "io")) {
r_core_cmd0 (core, ".:init");
}
r_core_cmd0 (core, "af @@ sym.*");
free (s);
break;
}
free (s);

r_str_var (asm_arch, 32, r_config_get (core->config, "asm.arch"));
bool didAap = false;
char *dh_orig = NULL;
Expand Down
1 change: 1 addition & 0 deletions test/db/cmd/cmd_open
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ EXPECT=<<EOF
"iofd": 3,
"bfid": 0,
"size": 512,
"addr": -1,
"obj": {
"arch": "x86",
"bits": 64,
Expand Down

0 comments on commit 6b3f883

Please sign in to comment.