11 #define END_OF_MAP_IDS UT32_MAX
168 if (
map->delta <= paddr && paddr <= map->
delta + (
map->itv.size ?
map->itv.size - 1 : 0)) {
216 }
else if (
map->fd ==
fd) {
348 if (load_align == 0) {
353 end_addr = next_addr +
size;
360 next_addr =
RZ_MAX(next_addr,
to + (load_align - (
to % load_align)) % load_align);
362 next_addr =
to + (load_align - (
to % load_align)) % load_align;
414 map->itv.size = newsize;
426 ut64 base = (io->
bits == 64) ? 0x60000000000ULL : 0x60000000ULL;
static RzList * maps(RzBinFile *bf)
size_t map(int syms, int left, int len)
RZ_API void Ht_() free(HtName_(Ht) *ht)
void io_map_calculate_skyline(RzIO *io)
RZ_API RzIOMap * rz_io_map_resolve(RzIO *io, ut32 id)
RZ_API void rz_io_map_cleanup(RzIO *io)
static void map_free(void *p)
Free-only. Be careful to only call this after sending RZ_EVENT_IO_MAP_DEL! (map_del does this)
RZ_API bool rz_io_map_exists_for_id(RzIO *io, ut32 id)
RZ_API void rz_io_map_init(RzIO *io)
RZ_API RzIOMap * rz_io_map_add(RzIO *io, int fd, int perm, ut64 delta, ut64 addr, ut64 size)
RZ_API bool rz_io_map_del_for_fd(RzIO *io, int fd)
RZ_API bool rz_io_map_del(RzIO *io, ut32 id)
RZ_API bool rz_io_map_exists(RzIO *io, RzIOMap *map)
RZ_API void rz_io_map_del_name(RzIOMap *map)
RZ_API bool rz_io_map_remap_fd(RzIO *io, int fd, ut64 addr)
RZ_API bool rz_io_map_depriorize(RzIO *io, ut32 id)
RZ_API ut64 rz_io_map_next_available(RzIO *io, ut64 addr, ut64 size, ut64 load_align)
RZ_API bool rz_io_map_priorize(RzIO *io, ut32 id)
RZ_API ut64 rz_io_map_next_address(RzIO *io, ut64 addr)
RZ_API RzIOMap * rz_io_map_new(RzIO *io, int fd, int perm, ut64 delta, ut64 addr, ut64 size)
RzIOMap * io_map_new(RzIO *io, int fd, int perm, ut64 delta, ut64 addr, ut64 size)
RZ_API RzIOMap * rz_io_map_get_paddr(RzIO *io, ut64 paddr)
RZ_API void rz_io_map_reset(RzIO *io)
RZ_API RzIOMap * rz_io_map_get(RzIO *io, ut64 addr)
RZ_API bool rz_io_map_priorize_for_fd(RzIO *io, int fd)
RZ_API bool rz_io_map_remap(RzIO *io, ut32 id, ut64 addr)
RZ_API RzList * rz_io_map_get_for_fd(RzIO *io, int fd)
RZ_API bool rz_io_map_resize(RzIO *io, ut32 id, ut64 newsize)
RZ_API void rz_io_update(RzIO *io)
RZ_API bool rz_io_map_is_mapped(RzIO *io, ut64 addr)
RZ_API RZ_BORROW RzPVector * rz_io_maps(RzIO *io)
Returns the pointer to vector containing maps list.
static void map_del(RzIO *io, RzIOMap *map)
Free the map, also sending the appropriate event.
RzIOMap * io_map_add(RzIO *io, int fd, int perm, ut64 delta, ut64 addr, ut64 size)
RZ_API void rz_io_map_set_name(RzIOMap *map, const char *name)
RZ_API void rz_io_map_fini(RzIO *io)
RZ_API ut64 rz_io_map_location(RzIO *io, ut64 size)
Returns a memory location that can hold enough bytes without overlapping.
RZ_API RzIOMap * rz_io_map_add_batch(RzIO *io, int fd, int perm, ut64 delta, ut64 addr, ut64 size)
RZ_API RZ_OWN RzList * rz_list_newf(RzListFree f)
Returns a new initialized RzList pointer and sets the free method.
RZ_API RZ_BORROW void * rz_list_get_n(RZ_NONNULL const RzList *list, ut32 n)
Returns the N-th element of the list.
RZ_API RZ_BORROW RzListIter * rz_list_append(RZ_NONNULL RzList *list, void *data)
Appends at the end of the list a new element.
RZ_API void rz_list_free(RZ_NONNULL RzList *list)
Empties the list and frees the list pointer.
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
#define rz_warn_if_reached()
#define rz_return_if_fail(expr)
#define rz_return_val_if_fail(expr, val)
RZ_API void rz_event_send(RzEvent *ev, int type, void *data)
RZ_API RzIDPool * rz_id_pool_new(ut32 start_id, ut32 last_id)
RZ_API bool rz_id_pool_grab_id(RzIDPool *pool, ut32 *grabber)
RZ_API void rz_id_pool_free(RzIDPool *pool)
RZ_API bool rz_id_pool_kick_id(RzIDPool *pool, ut32 kick)
RZ_API RzIODesc * rz_io_desc_get(RzIO *io, int fd)
static ut64 rz_itv_begin(RzInterval itv)
static bool rz_itv_contain(RzInterval itv, ut64 addr)
struct rz_interval_t RzInterval
static ut64 rz_itv_end(RzInterval itv)
static ut64 rz_itv_size(RzInterval itv)
static void * rz_skyline_get(RzSkyline *skyline, ut64 addr)
static void rz_skyline_clear(RzSkyline *skyline)
RZ_API bool rz_skyline_add(RzSkyline *skyline, RzInterval itv, void *user)
static void ** rz_pvector_insert_range(RzPVector *vec, size_t index, void **first, size_t count)
static void ** rz_pvector_push_front(RzPVector *vec, void *x)
RZ_API void rz_pvector_init(RzPVector *vec, RzPVectorFree free)
static size_t rz_pvector_len(const RzPVector *vec)
#define rz_pvector_foreach_prev(vec, it)
RZ_API void * rz_pvector_remove_at(RzPVector *vec, size_t index)
static void ** rz_pvector_push(RzPVector *vec, void *x)
RZ_API void rz_pvector_clear(RzPVector *vec)
static void * rz_pvector_at(const RzPVector *vec, size_t index)
#define rz_pvector_foreach(vec, it)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]