Rizin
unix-like reverse engineering framework and cli tools
|
#include "packet.h"
#include "utils.h"
Go to the source code of this file.
Classes | |
struct | parse_ctx |
Macros | |
#define | READ_TIMEOUT (250 * 1000) |
Enumerations | |
enum | { HEADER = 1 << 0 , CHKSUM = 1 << 1 , DUP = 1 << 2 , ESC = 1 << 3 } |
Functions | |
static bool | append (libgdbr_t *g, const char ch) |
static int | unpack (libgdbr_t *g, struct parse_ctx *ctx, int len) |
int | read_packet (libgdbr_t *g, bool vcont) |
Function reads data from the established connection. More... | |
int | send_packet (libgdbr_t *g) |
sends a packet sends a packet to the established connection More... | |
int | pack (libgdbr_t *g, const char *msg) |
Definition at line 206 of file packet.c.
References cmd_checksum(), eprintf, g, msg, snprintf, and src.
Referenced by send_msg(), xprint::to_x(), and xprint::to_x_32().
Function reads data from the established connection.
g | the "instance" of the current libgdbr session |
vcont | whether it's called to receive reply to a vcont packet |
Definition at line 143 of file packet.c.
References eprintf, g, i, READ_TIMEOUT, rz_socket_read(), rz_socket_ready(), and unpack().
Referenced by __system(), gdbr_attach(), gdbr_check_extended_mode(), gdbr_check_vcont(), gdbr_close_file(), gdbr_connect(), gdbr_connect_lldb(), gdbr_detach_pid(), gdbr_exec_file_read(), gdbr_get_baddr(), gdbr_is_thread_dead(), gdbr_kill_pid(), gdbr_open_file(), gdbr_pids_list(), gdbr_read_feature(), gdbr_read_file(), gdbr_read_memory_page(), gdbr_read_osdata(), gdbr_read_registers(), gdbr_read_registers_lldb(), gdbr_select(), gdbr_send_qRcmd(), gdbr_server_serve(), gdbr_stop_reason(), gdbr_threads_list(), gdbr_write_bin_registers(), gdbr_write_memory(), gdbr_write_register(), gdbr_write_registers(), remove_bp(), send_vcont(), set_bp(), and test_command().
sends a packet sends a packet to the established connection
g | the "instance" of the current libgdbr session |
Definition at line 193 of file packet.c.
References eprintf, g, and rz_socket_write().
Referenced by send_msg().
Definition at line 43 of file packet.c.
References append(), CHKSUM, DUP, eprintf, ESC, g, HEADER, hex2int(), i, len, and memcpy().
Referenced by read_packet(), objdump-m68k::s16(), and objdump-m68k::s8().