Fix some branch analysis issues for x86 Add new simpler r_reg api r_reg_getv() Store library offset in dyldcache xtract info Accessible via rabin2 -A or r2 <file> Looks like dyldcache is too slow and buggy for latest caches Fix indentation in branch comments
29 lines
654 B
C
29 lines
654 B
C
/* radare - LGPL - Copyright 2009-2010 nibble<.ds@gmail.com> */
|
|
|
|
#include <r_types.h>
|
|
#include "mach0_specs.h"
|
|
|
|
#ifndef _INCLUDE_R_BIN_DYLDCACHE_H_
|
|
#define _INCLUDE_R_BIN_DYLDCACHE_H_
|
|
|
|
struct r_bin_dyldcache_obj_t {
|
|
const char *file;
|
|
int size;
|
|
int nlibs;
|
|
struct cache_header hdr;
|
|
RBuffer* b;
|
|
};
|
|
|
|
struct r_bin_dyldcache_lib_t {
|
|
char path[1024];
|
|
int size;
|
|
ut64 offset;
|
|
RBuffer *b;
|
|
int last;
|
|
};
|
|
|
|
struct r_bin_dyldcache_lib_t *r_bin_dyldcache_extract(struct r_bin_dyldcache_obj_t* bin, int idx, int *nlib);
|
|
void *r_bin_dyldcache_free(struct r_bin_dyldcache_obj_t* bin);
|
|
struct r_bin_dyldcache_obj_t* r_bin_dyldcache_new(const char* file);
|
|
|
|
#endif
|