Rizin
unix-like reverse engineering framework and cli tools
|
#include "libgdbr.h"
#include "arch.h"
#include <stdio.h>
#include "reg/x86_32.h"
#include "reg/x86_64.h"
#include "reg/arm32.h"
#include "reg/arm64.h"
#include "reg/sh.h"
#include "reg/lm32.h"
#include "reg/riscv64.h"
#include "reg/mips.h"
#include "reg/avr.h"
#include "reg/v850.h"
Go to the source code of this file.
Functions | |
int | gdbr_init (libgdbr_t *g, bool is_server) |
Function initializes the libgdbr lib. More... | |
bool | gdbr_set_architecture (libgdbr_t *g, int arch, int bits) |
Function initializes the architecture of the gdbsession. More... | |
char * | gdbr_get_reg_profile (int arch, int bits) |
Function get gdb registers profile based on arch and bits. More... | |
int | gdbr_set_reg_profile (libgdbr_t *g, const char *str) |
Function set the gdbr internal registers profile. More... | |
int | gdbr_cleanup (libgdbr_t *g) |
frees all buffers and cleans the libgdbr instance stuff More... | |
frees all buffers and cleans the libgdbr instance stuff
Definition at line 146 of file libgdbr.c.
References g, RZ_FREE, rz_socket_free(), and rz_th_lock_free().
Referenced by __close(), and rz_core_rtr_gdb_run().
Function get gdb registers profile based on arch and bits.
architecture | and bit size. |
Definition at line 76 of file libgdbr.c.
References arch, bits(), eprintf, NULL, RZ_SYS_ARCH_ARM, RZ_SYS_ARCH_AVR, RZ_SYS_ARCH_LM32, RZ_SYS_ARCH_MIPS, RZ_SYS_ARCH_RISCV, RZ_SYS_ARCH_SH, RZ_SYS_ARCH_V850, and RZ_SYS_ARCH_X86.
Referenced by gdbr_set_architecture(), and rz_debug_gdb_reg_profile().
Function initializes the libgdbr lib.
Definition at line 9 of file libgdbr.c.
References calloc(), g, GDB_REMOTE_TYPE_GDB, memset(), MSG_OK, RZ_FREE, rz_socket_new(), and rz_th_lock_new().
Referenced by __open(), and rz_core_rtr_gdb_run().
Function initializes the architecture of the gdbsession.
architecture | defines the architecure used (registersize, and such) |
Definition at line 52 of file libgdbr.c.
References arch, bits(), eprintf, free(), g, gdbr_get_reg_profile(), and gdbr_set_reg_profile().
Referenced by rz_core_rtr_gdb_run(), rz_debug_gdb_attach(), and rz_debug_gdb_reg_profile().
Function set the gdbr internal registers profile.
registers | profile string which shares the same format as RzReg API |
Definition at line 125 of file libgdbr.c.
References arch_parse_reg_profile(), eprintf, free(), g, cmd_descs_generate::str, and strdup().
Referenced by gdbr_set_architecture(), and rz_debug_gdb_set_reg_profile().