Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_io.h"
#include "rz_lib.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "../debug/p/bfvm.h"
#include "../debug/p/bfvm.c"
Go to the source code of this file.
Classes | |
struct | RzIOBfdbg |
Macros | |
#define | RZ_API static inline |
#define | RzIOBFDBG_FD(x) (((RzIOBfdbg *)(x)->data)->fd) |
#define | RzIOBFDBG_SZ(x) (((RzIOBfdbg *)(x)->data)->size) |
#define | RzIOBFDBG_BUF(x) (((RzIOBfdbg *)(x)->data)->buf) |
Functions | |
static int | is_in_screen (ut64 off, BfvmCPU *c) |
static int | is_in_input (ut64 off, BfvmCPU *c) |
static int | is_in_base (ut64 off, BfvmCPU *c) |
static int | __write (RzIO *io, RzIODesc *fd, const ut8 *buf, int count) |
static int | __read (RzIO *io, RzIODesc *fd, ut8 *buf, int count) |
static int | __close (RzIODesc *fd) |
static ut64 | __lseek (RzIO *io, RzIODesc *fd, ut64 offset, int whence) |
static bool | __plugin_open (RzIO *io, const char *pathname, bool many) |
static int | getmalfd (RzIOBfdbg *mal) |
static RzIODesc * | __open (RzIO *io, const char *pathname, int rw, int mode) |
Variables | |
RzIOPlugin | rz_io_plugin_bfdbg |
RZ_API RzLibStruct | rizin_plugin |
#define RZ_API static inline |
Definition at line 10 of file io_bfdbg.c.
Definition at line 24 of file io_bfdbg.c.
Definition at line 23 of file io_bfdbg.c.
Definition at line 130 of file io_bfdbg.c.
References RzIOBfdbg::bfvm, bfvm_free(), RzIOBfdbg::buf, fd, and RZ_FREE.
Definition at line 142 of file io_bfdbg.c.
References fd, rz_io_t::off, RzIOBFDBG_SZ, SEEK_CUR, SEEK_END, and SEEK_SET.
Definition at line 159 of file io_bfdbg.c.
References __plugin_open(), bfvm_new(), eprintf, free(), getmalfd(), mal, malloc(), memcpy(), NULL, out, pathname, PFMT32u, rz_file_slurp(), rz_io_bind(), rz_io_desc_new(), rz_io_plugin_bfdbg, and RZ_NEW0.
Definition at line 84 of file io_bfdbg.c.
References bfvm_cpu_t::base, RzIOBfdbg::bfvm, count, fd, bfvm_cpu_t::input, bfvm_cpu_t::input_buf, bfvm_cpu_t::input_size, is_in_base(), is_in_input(), is_in_screen(), bfvm_cpu_t::mem, memcpy(), n, rz_io_t::off, RzIOBFDBG_BUF, RzIOBFDBG_SZ, bfvm_cpu_t::screen, bfvm_cpu_t::screen_buf, and bfvm_cpu_t::screen_size.
Definition at line 38 of file io_bfdbg.c.
References bfvm_cpu_t::base, RzIOBfdbg::bfvm, count, fd, bfvm_cpu_t::input, bfvm_cpu_t::input_buf, bfvm_cpu_t::input_size, is_in_base(), is_in_input(), is_in_screen(), bfvm_cpu_t::mem, memcpy(), n, rz_io_t::off, RzIOBFDBG_BUF, RzIOBFDBG_SZ, bfvm_cpu_t::screen, bfvm_cpu_t::screen_buf, and bfvm_cpu_t::screen_size.
Definition at line 155 of file io_bfdbg.c.
Referenced by __open().
RZ_API RzLibStruct rizin_plugin |
Definition at line 211 of file io_bfdbg.c.
RzIOPlugin rz_io_plugin_bfdbg |
Definition at line 197 of file io_bfdbg.c.
Referenced by __open().