Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_debug.h>
#include <libgdbr.h>
#include <gdbclient/commands.h>
#include "native/bt.c"
Go to the source code of this file.
Classes | |
struct | RzIOGdb |
struct | rz_debug_gdb_ctx_t |
Macros | |
#define | UNKNOWN (-1) |
#define | UNSUPPORTED 0 |
#define | SUPPORTED 1 |
#define | GDB_FILE_OPEN_MODE (S_IRUSR | S_IWUSR | S_IXUSR) |
Typedefs | |
typedef struct rz_debug_gdb_ctx_t | RzDebugGdbCtx |
Variables | |
RzDebugPlugin | rz_debug_plugin_gdb |
RZ_API RzLibStruct | rizin_plugin |
#define GDB_FILE_OPEN_MODE (S_IRUSR | S_IWUSR | S_IXUSR) |
#define SUPPORTED 1 |
Definition at line 16 of file debug_gdb.c.
#define UNKNOWN (-1) |
Definition at line 14 of file debug_gdb.c.
#define UNSUPPORTED 0 |
Definition at line 15 of file debug_gdb.c.
typedef struct rz_debug_gdb_ctx_t RzDebugGdbCtx |
|
static |
Definition at line 44 of file debug_gdb.c.
References dbg, rz_debug_t::plugin_data, and rz_debug_gdb_attach().
Referenced by rz_debug_gdb_continue(), rz_debug_gdb_map_get(), rz_debug_gdb_reg_profile(), rz_debug_gdb_reg_read(), rz_debug_gdb_reg_write(), rz_debug_gdb_step(), and rz_debug_gdb_wait().
Definition at line 397 of file debug_gdb.c.
References rz_debug_t::analysis, rz_debug_t::arch, arch, rz_analysis_t::bits, bits(), d, dbg, rz_io_t::desc, eprintf, g, gdbr_set_architecture(), rz_io_bind_t::io, rz_debug_t::iob, rz_debug_t::plugin_data, rz_sys_arch_id(), rz_debug_t::swstep, and UNKNOWN.
Referenced by check_connection().
|
static |
Definition at line 461 of file debug_gdb.c.
References b, dbg, gdbr_remove_bp(), gdbr_remove_hwa(), gdbr_remove_hwbp(), gdbr_remove_hwr(), gdbr_remove_hww(), gdbr_set_bp(), gdbr_set_hwa(), gdbr_set_hwbp(), gdbr_set_hwr(), gdbr_set_hww(), rz_debug_t::plugin_data, RZ_PERM_ACCESS, RZ_PERM_R, RZ_PERM_W, RZ_PERM_X, and rz_bp_t::user.
Definition at line 355 of file debug_gdb.c.
References check_connection(), dbg, gdbr_continue(), pid, rz_debug_t::plugin_data, and RZ_DEBUG_REASON_UNKNOWN.
Definition at line 420 of file debug_gdb.c.
References dbg, desc, gdbr_detach(), gdbr_detach_pid(), NULL, rz_debug_t::pid, pid, and rz_debug_t::plugin_data.
|
static |
Definition at line 570 of file debug_gdb.c.
References dbg, and rz_debug_native_frames().
|
static |
Definition at line 529 of file debug_gdb.c.
References dbg, eprintf, found, gdbr_exec_file_read(), gdbr_stop_reason(), rz_debug_pid_t::gid, NULL, rz_debug_t::pid, rz_debug_pid_t::pid, rz_debug_t::plugin_data, rdi, RZ_DBG_PROC_STOP, rz_debug_gdb_threads(), rz_list_free(), RZ_NEW0, rz_debug_pid_t::status, rz_debug_t::threads, rz_debug_t::tid, and rz_debug_pid_t::uid.
Definition at line 27 of file debug_gdb.c.
Definition at line 508 of file debug_gdb.c.
References dbg, gdbr_kill(), and rz_debug_t::plugin_data.
Definition at line 133 of file debug_gdb.c.
References baddr(), buflen, check_connection(), dbg, eprintf, free(), GDB_FILE_OPEN_MODE, gdbr_close_file(), gdbr_get_baddr(), gdbr_open_file(), gdbr_read_file(), i, malloc(), map(), NULL, O_RDONLY, path, PFMT64x, rz_debug_t::plugin_data, rz_debug_map_new(), rz_list_append(), rz_list_free(), rz_list_new(), rz_num_get(), RZ_PERM_R, RZ_PERM_RX, RZ_PERM_W, RZ_PERM_X, snprintf, strdup(), UINT64_MAX, and ut64().
Referenced by rz_debug_gdb_modules_get().
Definition at line 268 of file debug_gdb.c.
References dbg, free(), list(), map(), NULL, rz_debug_gdb_map_get(), rz_debug_map_free(), rz_list_append(), rz_list_delete(), rz_list_free(), rz_list_newf(), and strdup().
Definition at line 70 of file debug_gdb.c.
References dbg, gdbr_pids_list(), list(), pid, rz_debug_t::plugin_data, and rz_debug_pid_free().
Definition at line 435 of file debug_gdb.c.
References rz_debug_t::analysis, rz_debug_t::arch, arch, rz_analysis_t::bits, bits(), check_connection(), dbg, gdbr_get_reg_profile(), gdbr_set_architecture(), NULL, rz_debug_t::plugin_data, rz_sys_arch_id(), and strdup().
Definition at line 79 of file debug_gdb.c.
References buflen, calloc(), check_connection(), dbg, desc, eprintf, free(), gdbr_read_registers(), i, memcpy(), memset(), rz_debug_t::plugin_data, printf(), realloc(), rz_debug_t::reg, RZ_DEBUG_REASON_UNKNOWN, RZ_MAX, RZ_MIN, rz_reg_get_bytes(), and type.
Definition at line 306 of file debug_gdb.c.
References rz_debug_t::analysis, rz_reg_set_t::arena, rz_analysis_t::bits, bits(), buflen, rz_reg_arena_t::bytes, check_connection(), dbg, free(), gdbr_write_reg(), memset(), rz_reg_item_t::name, NULL, rz_reg_item_t::offset, rz_debug_t::plugin_data, realloc(), reg, rz_analysis_t::reg, rz_debug_t::reg, rz_reg_t::regset, RZ_DEBUG_REASON_UNKNOWN, rz_reg_get(), rz_reg_get_bytes(), rz_reg_get_name(), RZ_REG_NAME_PC, rz_reg_next_diff(), rz_reg_item_t::size, and type.
Definition at line 519 of file debug_gdb.c.
References dbg, gdbr_select(), NULL, pid, and rz_debug_t::plugin_data.
Definition at line 453 of file debug_gdb.c.
References dbg, gdbr_set_reg_profile(), rz_debug_t::plugin_data, and cmd_descs_generate::str.
Definition at line 51 of file debug_gdb.c.
References check_connection(), dbg, gdbr_step(), rz_debug_t::plugin_data, RZ_DEBUG_REASON_UNKNOWN, and rz_debug_t::tid.
Definition at line 61 of file debug_gdb.c.
References dbg, gdbr_threads_list(), list(), pid, rz_debug_t::plugin_data, and rz_debug_pid_free().
Referenced by rz_debug_gdb_info().
|
static |
Definition at line 371 of file debug_gdb.c.
References check_connection(), dbg, gdbr_select(), gdbr_stop_reason(), rz_debug_t::pid, rz_debug_t::plugin_data, rz_debug_t::reason, RZ_DEBUG_REASON_UNKNOWN, rz_debug_reason_t::signum, rz_debug_reason_t::tid, rz_debug_t::tid, and rz_debug_reason_t::type.
RZ_API RzLibStruct rizin_plugin |
Definition at line 606 of file debug_gdb.c.
RzDebugPlugin rz_debug_plugin_gdb |
Definition at line 574 of file debug_gdb.c.