Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_types.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "../libgdbr.h"
#include "../utils.h"
#include "../arch.h"
Go to the source code of this file.
Macros | |
#define | CMD_ATTACH "vAttach;" |
#define | CMD_DETACH_MP "D;" |
#define | CMD_KILL_MP "vKill;" |
#define | CMD_READREGS "g" |
#define | CMD_WRITEREGS "G" |
#define | CMD_READREG "p" |
#define | CMD_WRITEREG "P" |
#define | CMD_WRITEMEM "M" |
#define | CMD_READMEM "m" |
#define | CMD_BP "Z0" |
#define | CMD_RBP "z0" |
#define | CMD_HBP "Z1" |
#define | CMD_RHBP "z1" |
#define | CMD_HWW "Z2" |
#define | CMD_RHWW "z2" |
#define | CMD_HWR "Z3" |
#define | CMD_RHWR "z3" |
#define | CMD_HWA "Z4" |
#define | CMD_RHWA "z4" |
#define | CMD_QRCMD "qRcmd," |
#define | CMD_C "vCont" |
#define | CMD_C_CONT "c" |
#define | CMD_C_CONT_SIG "C" |
#define | CMD_C_STEP "s" |
Enumerations | |
enum | Breakpoint { BREAKPOINT , HARDWARE_BREAKPOINT , WRITE_WATCHPOINT , READ_WATCHPOINT , ACCESS_WATCHPOINT , BREAKPOINT , HARDWARE_BREAKPOINT , WRITE_WATCHPOINT , READ_WATCHPOINT , ACCESS_WATCHPOINT } |
Functions | |
int | send_vcont (libgdbr_t *g, const char *command, const char *thread_id) |
Function sends a vCont command to the gdbserver. More... | |
int | set_bp (libgdbr_t *g, ut64 address, const char *conditions, enum Breakpoint type, int sizebp) |
int | remove_bp (libgdbr_t *g, ut64 address, enum Breakpoint type, int sizebp) |
enum Breakpoint |
int remove_bp | ( | libgdbr_t * | g, |
ut64 | address, | ||
enum Breakpoint | type, | ||
int | sizebp | ||
) |
Definition at line 1396 of file core.c.
References ACCESS_WATCHPOINT, BREAKPOINT, CMD_RBP, CMD_RHBP, CMD_RHWA, CMD_RHWR, CMD_RHWW, test_evm::end, g, gdbr_lock_enter(), gdbr_lock_leave(), handle_removebp(), HARDWARE_BREAKPOINT, PFMT64x, read_packet(), READ_WATCHPOINT, send_msg(), snprintf, autogen_x86imm::tmp, type, and WRITE_WATCHPOINT.
Referenced by gdbr_remove_bp(), gdbr_remove_hwa(), gdbr_remove_hwbp(), gdbr_remove_hwr(), and gdbr_remove_hww().
Function sends a vCont command to the gdbserver.
g | thre "instance" of the current libgdbr session |
command | the command that will be sent (i.e. 's,S,c,C...') |
Definition at line 1212 of file core.c.
References CMD_C, command, test_evm::end, g, gdbr_lock_enter(), gdbr_lock_leave(), handle_cont(), NULL, read_packet(), reg_cache, rz_cons_sleep_begin(), rz_cons_sleep_end(), rz_socket_is_connected(), rz_socket_write(), send_msg(), snprintf, and autogen_x86imm::tmp.
Referenced by gdbr_continue(), and gdbr_step().
int set_bp | ( | libgdbr_t * | g, |
ut64 | address, | ||
const char * | conditions, | ||
enum Breakpoint | type, | ||
int | sizebp | ||
) |
Definition at line 1302 of file core.c.
References ACCESS_WATCHPOINT, BREAKPOINT, CMD_BP, CMD_HBP, CMD_HWA, CMD_HWR, CMD_HWW, test_evm::end, g, gdbr_lock_enter(), gdbr_lock_leave(), handle_setbp(), HARDWARE_BREAKPOINT, PFMT64x, read_packet(), READ_WATCHPOINT, send_msg(), snprintf, autogen_x86imm::tmp, type, and WRITE_WATCHPOINT.
Referenced by gdbr_set_bp(), gdbr_set_hwa(), gdbr_set_hwbp(), gdbr_set_hwr(), and gdbr_set_hww().