Rizin
unix-like reverse engineering framework and cli tools
core.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2016 madprogrammer
2 // SPDX-License-Identifier: GPL-2.0-only
3 
5 #ifndef QNX_CORE_H
6 #define QNX_CORE_H
7 
8 #include "rz_types.h"
9 
10 #include <stdint.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #if __UNIX__
14 #include <unistd.h>
15 #endif
16 #include <stdio.h>
17 
18 #include "libqnxr.h"
19 #include "utils.h"
20 #include "arch.h"
21 
22 #ifndef offsetof
23 #define offsetof(TYPE, MEMBER) ((size_t) & ((TYPE *)0)->MEMBER)
24 #endif
25 
26 enum Breakpoint {
32 };
33 
34 int qnxr_send_vcont(libqnxr_t *g, int step, int thread_id);
35 
36 int _qnxr_set_bp(libqnxr_t *g, ut64 address, const char *conditions, enum Breakpoint type);
37 
38 int _qnxr_remove_bp(libqnxr_t *g, ut64 address, enum Breakpoint type);
39 
40 #endif
static states step(struct re_guts *, sopno, sopno, states, int, states)
Definition: engine.c:888
struct @667 g
int type
Definition: mipsasm.c:17
static const char * conditions[]
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 _qnxr_set_bp(libqnxr_t *g, ut64 address, const char *conditions, enum Breakpoint type)
Definition: core.c:615
int _qnxr_remove_bp(libqnxr_t *g, ut64 address, enum Breakpoint type)
Definition: core.c:629
int qnxr_send_vcont(libqnxr_t *g, int step, int thread_id)
Definition: core.c:517
ut64(WINAPI *w32_GetEnabledXStateFeatures)()