mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
57812e2471
* Get rid of some eprintf * Use RCoreHelpMessage * Missing comma in cmd_cmp.c and vmenus.c * cmd.c * cmd_anal.c * cmd_cmp.c * cmd_debug.c * cmd_eval.c * cmd_flag.c * cmd_help.c * cmd_debug.c 2 * fixes * cmd_info.c * cmd_log.c * cmd_meta.c * cmd_mount.c * cmd_open.c * cmd_print.c * cconfig.c * cmd.c * cmd_anal.c * cmd_search.c * cmd_seek.c * cmd_write.c * core_a2f.c * core_sixref.c * vmenus.c * yank.c * Please sys/lint.sh
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
/* radare2 - LGPL - [$minyear-$maxyear] - [$author]*/
|
|
|
|
#include <r_core.h>
|
|
|
|
typedef struct r_core_rtr_host_t2 {
|
|
int proto;
|
|
int port;
|
|
char host[512];
|
|
char file[1024];
|
|
RSocket *fd;
|
|
} RCoreRtrHost2;
|
|
|
|
static RCoreHelpMessage help_msg_aa = {
|
|
"Usage:", "aa[0*?]", " # see also 'af' and 'afna'",
|
|
"aa", " ", "alias for 'af@@ sym.*;af@entry0;afva'", //;.afna @@ fcn.*'",
|
|
"aa*", "", "analyze all flags starting with sym. (af @@ sym.*)",
|
|
NULL
|
|
};
|
|
|
|
static int cmpaddr(const void *_a, const void *_b) {
|
|
const RAnalFunction *a = _a, *b = _b;
|
|
return a->addr - b->addr;
|
|
}
|
|
|
|
int main(int argc, char **argv) {
|
|
r_anal_esil_set_pc (core->anal->esil, fcn? fcn->addr: core->offset);
|
|
switch (*input) {
|
|
case '\0': // "aft"
|
|
seek = core->offset;
|
|
r_anal_esil_set_pc (core->anal->esil, fcn? fcn->addr: core->offset);
|
|
r_core_anal_type_match (core, fcn);
|
|
r_core_seek (core, seek, true);
|
|
break;
|
|
case '0':
|
|
{
|
|
int a = 0;
|
|
printf ("LocalA: %d\n", a);
|
|
}
|
|
break;
|
|
case 'a':
|
|
argc--;
|
|
/* fallthrough */
|
|
case 'b':
|
|
case '?':
|
|
default:
|
|
r_core_cmd_help (core, help_msg_aft);
|
|
break;
|
|
}
|
|
return 0;
|
|
}
|