Rizin
unix-like reverse engineering framework and cli tools
core.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2014 defragger <rlaemmert@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
5 #ifndef GDB_CLIENT_CORE_H
6 #define GDB_CLIENT_CORE_H
7 
8 #include "rz_types.h"
9 
10 #include <stdint.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <stdio.h>
14 
15 #include "../libgdbr.h"
16 #include "../utils.h"
17 #include "../arch.h"
18 
19 #define CMD_ATTACH "vAttach;"
20 #define CMD_DETACH_MP "D;"
21 #define CMD_KILL_MP "vKill;"
22 
23 #define CMD_READREGS "g"
24 #define CMD_WRITEREGS "G"
25 #define CMD_READREG "p"
26 #define CMD_WRITEREG "P"
27 #define CMD_WRITEMEM "M"
28 #define CMD_READMEM "m"
29 
30 #define CMD_BP "Z0"
31 #define CMD_RBP "z0"
32 #define CMD_HBP "Z1"
33 #define CMD_RHBP "z1"
34 #define CMD_HWW "Z2"
35 #define CMD_RHWW "z2"
36 #define CMD_HWR "Z3"
37 #define CMD_RHWR "z3"
38 #define CMD_HWA "Z4"
39 #define CMD_RHWA "z4"
40 #define CMD_QRCMD "qRcmd,"
41 #define CMD_C "vCont"
42 #define CMD_C_CONT "c"
43 #define CMD_C_CONT_SIG "C"
44 #define CMD_C_STEP "s"
45 
46 enum Breakpoint {
52 };
53 
60 int send_vcont(libgdbr_t *g, const char *command, const char *thread_id);
61 
62 int set_bp(libgdbr_t *g, ut64 address, const char *conditions, enum Breakpoint type, int sizebp);
63 
64 int remove_bp(libgdbr_t *g, ut64 address, enum Breakpoint type, int sizebp);
65 
66 #endif // GDB_CLIENT_CORE_H
struct @667 g
int type
Definition: mipsasm.c:17
static const char * conditions[]
int remove_bp(libgdbr_t *g, ut64 address, enum Breakpoint type, int sizebp)
Definition: core.c:1396
Breakpoint
Definition: core.h:46
@ WRITE_WATCHPOINT
Definition: core.h:49
@ READ_WATCHPOINT
Definition: core.h:50
@ ACCESS_WATCHPOINT
Definition: core.h:51
@ BREAKPOINT
Definition: core.h:47
@ HARDWARE_BREAKPOINT
Definition: core.h:48
int set_bp(libgdbr_t *g, ut64 address, const char *conditions, enum Breakpoint type, int sizebp)
Definition: core.c:1302
int send_vcont(libgdbr_t *g, const char *command, const char *thread_id)
Function sends a vCont command to the gdbserver.
Definition: core.c:1212
const char * command
Definition: main.c:7
ut64(WINAPI *w32_GetEnabledXStateFeatures)()