Rizin
unix-like reverse engineering framework and cli tools
|
#include "libbochs.h"
Go to the source code of this file.
Macros | |
#define | SIZE_BUF 0x5800 * 2 |
#define | PIPE_READ 0 |
#define | PIPE_WRITE 1 |
Functions | |
void | bochs_reset_buffer (libbochs_t *b) |
bool | bochs_cmd_stop (libbochs_t *b) |
bool | bochs_wait (libbochs_t *b) |
void | bochs_send_cmd (libbochs_t *b, const char *cmd, 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 *pathBochs, const char *pathConfig) |
Variables | |
static char * | lpTmpBuffer |
#define PIPE_READ 0 |
#define PIPE_WRITE 1 |
#define SIZE_BUF 0x5800 * 2 |
Definition at line 8 of file libbochs.c.
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 * | pathBochs, | ||
const char * | pathConfig | ||
) |
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 * | cmd, | ||
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().
|
static |
Definition at line 6 of file libbochs.c.
Referenced by bochs_close(), bochs_open(), and bochs_wait().