Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Classes | |
struct | libbochs_t |
Macros | |
#define | ENABLE_DEBUG 0 |
#define | lprintf(x, y...) {} |
Typedefs | |
typedef struct libbochs_t | libbochs_t |
Functions | |
bool | bochs_wait (libbochs_t *b) |
void | bochs_reset_buffer (libbochs_t *b) |
bool | bochs_cmd_stop (libbochs_t *b) |
void | bochs_send_cmd (libbochs_t *b, const char *comando, bool bWait) |
int | bochs_read (libbochs_t *b, ut64 addr, int count, ut8 *buf) |
void | bochs_close (libbochs_t *b) |
bool | bochs_open (libbochs_t *b, const char *rutaBochs, const char *rutaConfig) |
#define ENABLE_DEBUG 0 |
Definition at line 47 of file libbochs.h.
#define lprintf | ( | x, | |
y... | |||
) | {} |
Definition at line 64 of file libbochs.h.
typedef struct libbochs_t libbochs_t |
void bochs_close | ( | libbochs_t * | b | ) |
Definition at line 168 of file libbochs.c.
References b, close, free(), kill, lpTmpBuffer, RZ_FREE, and SIGKILL.
Referenced by __close(), and bochs_open().
bool bochs_cmd_stop | ( | libbochs_t * | b | ) |
Definition at line 45 of file libbochs.c.
Referenced by __system(), and bochs_debug_break().
bool bochs_open | ( | libbochs_t * | b, |
const char * | rutaBochs, | ||
const char * | rutaConfig | ||
) |
Definition at line 188 of file libbochs.c.
References b, bochs_close(), bochs_reset_buffer(), bochs_wait(), dup2, eprintf, test-lz4-list::exit, free(), lprintf, lpTmpBuffer, malloc(), memset(), NULL, PIPE_READ, PIPE_WRITE, read(), RZ_FREE, rz_sys_execl(), rz_sys_pipe(), rz_sys_pipe_close(), SIZE_BUF, snprintf, STDERR_FILENO, STDIN_FILENO, STDOUT_FILENO, and TRUE.
Referenced by __open().
int bochs_read | ( | libbochs_t * | b, |
ut64 | addr, | ||
int | count, | ||
ut8 * | buf | ||
) |
Definition at line 136 of file libbochs.c.
References addr, b, bochs_send_cmd(), count, eprintf, i, PFMT64x, rz_hex_str2bin(), SIZE_BUF, and snprintf.
Referenced by __read().
void bochs_reset_buffer | ( | libbochs_t * | b | ) |
Definition at line 40 of file libbochs.c.
References b, memset(), and SIZE_BUF.
Referenced by bochs_open(), bochs_send_cmd(), and bochs_wait().
void bochs_send_cmd | ( | libbochs_t * | b, |
const char * | comando, | ||
bool | bWait | ||
) |
Definition at line 117 of file libbochs.c.
References b, bochs_reset_buffer(), bochs_wait(), cmd, DWORD, eprintf, free(), NULL, rz_str_newf(), and write.
Referenced by __system(), bochs_read(), rz_debug_bochs_breakpoint(), rz_debug_bochs_continue(), rz_debug_bochs_reg_read(), and rz_debug_bochs_step().
bool bochs_wait | ( | libbochs_t * | b | ) |
Definition at line 70 of file libbochs.c.
References b, bochs_reset_buffer(), DWORD, F_GETFL, fcntl, flags, lprintf, lpTmpBuffer, memcpy(), n, NULL, O_NONBLOCK, read(), SIZE_BUF, and times.
Referenced by bochs_open(), bochs_send_cmd(), and rz_debug_bochs_wait().