mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 23:16:05 +00:00
update hook_flag_read
Conflicts: libr/anal/esil_stats.c libr/include/r_anal.h
This commit is contained in:
parent
cd49d02fbe
commit
9621db0985
@ -1,8 +1,7 @@
|
||||
#include <r_anal.h>
|
||||
|
||||
static int hook_flag_read(RAnalEsil *esil, char flag, ut64 *num) {
|
||||
char str[2] = {flag,0};
|
||||
sdb_array_add (esil->stats, "flg.read", str, 0);
|
||||
static int hook_flag_read(RAnalEsil *esil, char *flag, ut64 *num) {
|
||||
sdb_array_add (esil->stats, "flg.read", flag, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -798,9 +798,8 @@ typedef struct r_anal_esil_t {
|
||||
/* deep esil parsing fills this */
|
||||
Sdb *stats;
|
||||
/* callbacks */
|
||||
int (*hook_flag_read)(ESIL *esil, char flag, ut64 *num);
|
||||
int (*hook_flag_read)(ESIL *esil, char *flag, ut64 *num);
|
||||
int (*hook_command)(ESIL *esil, const char *op);
|
||||
|
||||
int (*hook_mem_read)(ESIL *esil, ut64 addr, ut8 *buf, int len);
|
||||
int (*mem_read)(ESIL *esil, ut64 addr, ut8 *buf, int len);
|
||||
int (*hook_mem_write)(ESIL *esil, ut64 addr, const ut8 *buf, int len);
|
||||
|
Loading…
Reference in New Issue
Block a user