Rizin
unix-like reverse engineering framework and cli tools
|
#include <signal.h>
#include <errno.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/sysctl.h>
#include <sys/wait.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <kvm.h>
#include <limits.h>
#include <sys/ptrace.h>
#include "bsd_debug.h"
Go to the source code of this file.
Functions | |
int | bsd_handle_signals (RzDebug *dbg) |
int | bsd_reg_write (RzDebug *dbg, int type, const ut8 *buf, int size) |
bool | bsd_generate_corefile (RzDebug *dbg, char *path, RzBuffer *dest) |
RzDebugInfo * | bsd_info (RzDebug *dbg, const char *arg) |
RzList * | bsd_pid_list (RzDebug *dbg, int pid, RzList *list) |
RzList * | bsd_native_sysctl_map (RzDebug *dbg) |
RzList * | bsd_desc_list (int pid) |
RzList * | bsd_thread_list (RzDebug *dbg, int pid, RzList *list) |
Definition at line 444 of file bsd_debug.c.
References AF_LOCAL, dirent::d_name, dd, desc, fail, rz_list_t::free, free(), if(), len, malloc(), memcpy(), NULL, path, pid, readdir, readlink, rz_debug_desc_free(), rz_debug_desc_new(), rz_list_append(), rz_list_free(), rz_list_new(), rz_list_newf(), RZ_LOG_ERROR, RZ_PERM_R, RZ_PERM_W, rz_strf, rz_sys_perror, stat, cmd_descs_generate::str, sockaddr_un::sun_path, and type.
Definition at line 139 of file bsd_debug.c.
References dbg, dest, path, pc, rz_debug_t::pid, and ptrace.
Definition at line 65 of file bsd_debug.c.
References dbg, ESRCH, rz_debug_t::pid, ptrace, rz_debug_t::reason, RZ_DEBUG_REASON_ABORT, RZ_DEBUG_REASON_BREAKPOINT, RZ_DEBUG_REASON_DEAD, RZ_DEBUG_REASON_SEGFAULT, RZ_DEBUG_REASON_SIGNAL, rz_sys_perror, rz_debug_reason_t::signum, and rz_debug_reason_t::type.
RzDebugInfo* bsd_info | ( | RzDebug * | dbg, |
const char * | arg | ||
) |
Definition at line 149 of file bsd_debug.c.
References dbg, err, free(), NULL, rz_debug_t::pid, rdi, RZ_DBG_PROC_DEAD, RZ_DBG_PROC_RUN, RZ_DBG_PROC_SLEEP, RZ_DBG_PROC_STOP, RZ_DBG_PROC_ZOMBIE, RZ_NEW0, strdup(), and rz_debug_t::tid.
Definition at line 353 of file bsd_debug.c.
References dbg, eprintf, free(), len, list(), malloc(), map(), NULL, rz_debug_t::pid, rz_debug_map_list_new(), rz_debug_map_new(), and rz_list_append().
Definition at line 281 of file bsd_debug.c.
References eprintf, i, list(), NULL, p, pid, rz_debug_pid_new(), and rz_list_append().
Definition at line 119 of file bsd_debug.c.
References dbg, rz_debug_t::pid, PT_SETFPREGS, PT_SETREGS, ptrace, r, reg, RZ_REG_TYPE_DRX, RZ_REG_TYPE_FPU, RZ_REG_TYPE_GPR, and type.
Definition at line 637 of file bsd_debug.c.
References eprintf, free(), i, len, list(), malloc(), max, NULL, pid, rz_debug_pid_new(), rz_list_append(), rz_list_free(), and ut64().