Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdint.h>
#include <unistd.h>
#include "arch.h"
#include "rz_types_base.h"
#include "rz_socket.h"
#include "dsmsgs.h"
Go to the source code of this file.
Classes | |
struct | ptid_t |
struct | libqnxr_t |
Macros | |
#define | MSG_OK 0 |
#define | MSG_NOT_SUPPORTED -1 |
#define | MSG_ERROR_1 -2 |
#define | X86_64 ARCH_X86_64 |
#define | X86_32 ARCH_X86_32 |
#define | ARM_32 ARCH_ARM_32 |
#define | ARM_64 ARCH_ARM_64 |
Typedefs | |
typedef struct libqnxr_t | libqnxr_t |
typedef void() | pidlist_cb_t(void *ctx, pid_t pid, char *name) |
Variables | |
ptid_t | null_ptid |
#define ARM_32 ARCH_ARM_32 |
#define ARM_64 ARCH_ARM_64 |
#define X86_32 ARCH_X86_32 |
#define X86_64 ARCH_X86_64 |
Definition at line 309 of file utils.c.
References ptid_t::pid, and ptid_t::tid.
Referenced by rz_debug_qnx_wait().
Definition at line 223 of file core.c.
References DSrMsg_okdata, DStMsg_attach, eprintf, EXTRACT_SIGNED_INTEGER, g, nto_send(), nto_send_init(), null_ptid, pid, ptid_build(), qnxr_connect(), qnxr_disconnect(), rz_sys_sleep(), and SET_CHANNEL_DEBUG.
Referenced by rz_debug_qnx_attach().
Definition at line 147 of file core.c.
References DSMSG_PROTOVER_MAJOR, DSMSG_PROTOVER_MINOR, DSrMsg_err, DSrMsg_okstatus, DStMsg_connect, DStMsg_protover, EINVAL, eprintf, EXTRACT_SIGNED_INTEGER, g, HOST_QNX_PROTOVER_MAJOR, HOST_QNX_PROTOVER_MINOR, nto_send(), nto_send_init(), qnxr_send_ch_reset(), rz_socket_connect_tcp, rz_socket_new(), SET_CHANNEL_DEBUG, snprintf, and autogen_x86imm::tmp.
Referenced by __open(), and qnxr_attach().
Definition at line 470 of file core.c.
References g, and qnxr_send_vcont().
Referenced by rz_debug_qnx_continue().
Definition at line 206 of file core.c.
References DStMsg_disconnect, g, nto_send(), nto_send_init(), null_ptid, rz_socket_close(), and SET_CHANNEL_DEBUG.
Referenced by qnxr_attach(), and rz_debug_qnx_detach().
Definition at line 104 of file core.c.
References calloc(), DS_DATA_MAX_SIZE, g, memset(), RZ_FREE, and x86_32.
Referenced by __open().
void qnxr_pidlist | ( | libqnxr_t * | g, |
void * | ctx, | ||
pidlist_cb_t * | cb | ||
) |
Definition at line 417 of file core.c.
References cb, DSMSG_PIDLIST_BEGIN, DSMSG_PIDLIST_NEXT, DSrMsg_err, DSrMsg_okdata, DStMsg_pidlist, EXTRACT_SIGNED_INTEGER, g, if(), dspidlist::name, nto_send(), nto_send_init(), NULL, pid, dspidlist::pid, and SET_CHANNEL_DEBUG.
Referenced by rz_debug_qnx_pids().
Definition at line 365 of file core.c.
References addr, DS_DATA_MAX_SIZE, DSrMsg_okdata, DStMsg_memrd, EXTRACT_SIGNED_INTEGER, EXTRACT_UNSIGNED_INTEGER, g, len, memcpy(), nto_send(), nto_send_init(), SET_CHANNEL_DEBUG, and ut64().
Referenced by debug_qnx_read_at().
Definition at line 323 of file core.c.
References DS_DATA_MAX_SIZE, DSrMsg_okdata, DStMsg_regrd, eprintf, EXTRACT_SIGNED_INTEGER, g, i, i386nto_register_area(), i386nto_regset_id(), len, memcpy(), memset(), n, nto_send(), nto_send_init(), off, and SET_CHANNEL_DEBUG.
Referenced by rz_debug_qnx_reg_read().
Definition at line 607 of file core.c.
References _qnxr_remove_bp(), BREAKPOINT, and g.
Referenced by rz_debug_qnx_breakpoint().
Definition at line 611 of file core.c.
References _qnxr_remove_bp(), g, and HARDWARE_BREAKPOINT.
Referenced by rz_debug_qnx_breakpoint().
Definition at line 248 of file core.c.
References args, argv, DSMSG_ENV_CLEARARGV, DSMSG_ENV_CLEARENV, DSMSG_LOAD_DEBUG, DSrMsg_okdata, DStMsg_env, DStMsg_load, env, eprintf, g, nto_parse_notify(), nto_send(), nto_send_arg(), nto_send_env(), nto_send_init(), NULL, null_ptid, offsetof, p, ptid_t::pid, and SET_CHANNEL_DEBUG.
Definition at line 445 of file core.c.
References DSMSG_SELECT_SET, DSrMsg_err, DStMsg_select, eprintf, EXTRACT_SIGNED_INTEGER, g, nto_send(), nto_send_init(), pid, and SET_CHANNEL_DEBUG.
Referenced by rz_debug_qnx_select().
Definition at line 121 of file core.c.
References ARCH_ARM_32, ARCH_X86_32, arm32, eprintf, g, and x86_32.
Referenced by rz_debug_qnx_attach().
Definition at line 599 of file core.c.
References _qnxr_set_bp(), BREAKPOINT, conditions, and g.
Referenced by rz_debug_qnx_breakpoint().
Definition at line 603 of file core.c.
References _qnxr_set_bp(), conditions, g, and HARDWARE_BREAKPOINT.
Referenced by rz_debug_qnx_breakpoint().
Definition at line 466 of file core.c.
References g, and qnxr_send_vcont().
Referenced by rz_debug_qnx_step().
Definition at line 528 of file core.c.
References DSMSG_STOP_PIDS, DStMsg_stop, eprintf, g, nto_send_init(), qnxr_send_packet(), and SET_CHANNEL_DEBUG.
Referenced by rz_debug_qnx_stop().
Definition at line 542 of file core.c.
References DSHDR_MSG_BIG_ENDIAN, DShMsg_notify, DSrMsg_ok, eprintf, g, nto_parse_notify(), null_ptid, pid, qnxr_read_packet(), qnxr_send_ch_debug(), qnxr_send_packet(), SET_CHANNEL_DEBUG, and SET_CHANNEL_TEXT.
Referenced by rz_debug_qnx_wait().
Definition at line 395 of file core.c.
References addr, DSrMsg_ok, DSrMsg_okstatus, DStMsg_memwr, EXTRACT_SIGNED_INTEGER, EXTRACT_UNSIGNED_INTEGER, g, len, memcpy(), nto_send(), nto_send_init(), offsetof, SET_CHANNEL_DEBUG, and ut64().
Referenced by debug_qnx_write_at().
Definition at line 496 of file core.c.
References eprintf, g, i, len, qnxr_write_register(), and value.
Referenced by rz_debug_qnx_reg_write().
Definition at line 474 of file core.c.
References DStMsg_regwr, eprintf, EXTRACT_SIGNED_INTEGER, g, i386nto_register_area(), i386nto_regset_id(), len, memcpy(), nto_send(), nto_send_init(), off, offsetof, SET_CHANNEL_DEBUG, and value.
Referenced by qnxr_write_reg().
|
extern |
Definition at line 18 of file core.c.
Referenced by qnxr_attach(), qnxr_disconnect(), qnxr_run(), qnxr_wait(), and rz_debug_qnx_wait().