4 #ifndef CLIENT_COMMANDS_H
5 #define CLIENT_COMMANDS_H
7 #include "../libgdbr.h"
int gdbr_write_register(libgdbr_t *g, int index, char *value, int len)
int gdbr_disconnect(libgdbr_t *g)
disconnects the lib
int gdbr_read_memory(libgdbr_t *g, ut64 address, ut8 *buf, int len)
int gdbr_check_extended_mode(libgdbr_t *g)
checks for extended mode availability
int gdbr_remove_hwa(libgdbr_t *g, ut64 address, int sizebp)
int gdbr_remove_bp(libgdbr_t *g, ut64 address, int sizebp)
int gdbr_connect(libgdbr_t *g, const char *server, int port)
Function connects to a gdbserver instance.
int gdbr_open_file(libgdbr_t *g, const char *filename, int flags, int mode)
int gdbr_write_registers(libgdbr_t *g, char *registers)
int gdbr_check_vcont(libgdbr_t *g)
checks which subcommands of the vCont packet are supported
int gdbr_attach(libgdbr_t *g, int pid)
attaches to a process
int gdbr_remove_hwbp(libgdbr_t *g, ut64 address, int sizebp)
int gdbr_read_registers(libgdbr_t *g)
int gdbr_remove_hwr(libgdbr_t *g, ut64 address, int sizebp)
int gdbr_detach(libgdbr_t *g)
detaches from a process
bool gdbr_lock_enter(libgdbr_t *g)
Acquires the gdbr lock and sets up breaking.
RzList * gdbr_threads_list(libgdbr_t *g, int pid)
get list of threads for given pid
int gdbr_set_bp(libgdbr_t *g, ut64 address, const char *conditions, int sizebp)
Function sets normal breakpoint (0xcc, int3)
char * gdbr_exec_file_read(libgdbr_t *g, int pid)
int gdbr_remove_hww(libgdbr_t *g, ut64 address, int sizebp)
void gdbr_lock_leave(libgdbr_t *g)
Releases the gdbr lock.
RzList * gdbr_pids_list(libgdbr_t *g, int pid)
get a list of the child processes of the given pid
int gdbr_detach_pid(libgdbr_t *g, int pid)
int gdbr_set_hwa(libgdbr_t *g, ut64 address, const char *conditions, int sizebp)
int test_command(libgdbr_t *g, const char *command)
int gdbr_set_hwbp(libgdbr_t *g, ut64 address, const char *conditions, int sizebp)
int gdbr_step(libgdbr_t *g, int thread_id)
void gdbr_invalidate_reg_cache(void)
invalidates the reg cache
int gdbr_continue(libgdbr_t *g, int pid, int tid, int sig)
int gdbr_set_hwr(libgdbr_t *g, ut64 address, const char *conditions, int sizebp)
int gdbr_write_reg(libgdbr_t *g, const char *name, char *value, int len)
int gdbr_write_memory(libgdbr_t *g, ut64 address, const uint8_t *data, ut64 len)
int gdbr_read_file(libgdbr_t *g, ut8 *buf, ut64 max_len)
ut64 gdbr_get_baddr(libgdbr_t *g)
int gdbr_select(libgdbr_t *g, int pid, int tid)
int gdbr_kill(libgdbr_t *g)
kills the process the remote gdbserver is debugging (TODO: handle pid)
int gdbr_send_qRcmd(libgdbr_t *g, const char *cmd, PrintfCallback cb_printf)
sends a qRcmd packet which basically passes a command to the remote target's interpreter.
int gdbr_set_hww(libgdbr_t *g, ut64 address, const char *conditions, int sizebp)
int gdbr_stop_reason(libgdbr_t *g)
gets reason why remote target stopped
int gdbr_write_bin_registers(libgdbr_t *g, const char *regs, int len)
Function writes general purpose registers.
int gdbr_close_file(libgdbr_t *g)
int gdbr_kill_pid(libgdbr_t *g, int pid)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
static const char * conditions[]
int(* PrintfCallback)(const char *str,...) RZ_PRINTF_CHECK(1
static struct sockaddr static addrlen static backlog const void static flags void flags
ut64(WINAPI *w32_GetEnabledXStateFeatures)()