summaryrefslogtreecommitdiffstats
path: root/src/arch/loong64/include/gdbmach.h
blob: cd152eedda16ee1177cb0bca5c5f28444c5f9a00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef GDBMACH_H
#define GDBMACH_H

/** @file
 *
 * GDB architecture specifics
 *
 * This file declares functions for manipulating the machine state and
 * debugging context.
 *
 */

#include <stdint.h>

typedef unsigned long gdbreg_t;

/* Register snapshot */
enum {
	/* Not yet implemented */
	GDBMACH_NREGS,
};

#define GDBMACH_SIZEOF_REGS ( GDBMACH_NREGS * sizeof ( gdbreg_t ) )

static inline void gdbmach_set_pc ( gdbreg_t *regs, gdbreg_t pc ) {
	/* Not yet implemented */
	( void ) regs;
	( void ) pc;
}

static inline void gdbmach_set_single_step ( gdbreg_t *regs, int step ) {
	/* Not yet implemented */
	( void ) regs;
	( void ) step;
}

static inline void gdbmach_breakpoint ( void ) {
	/* Not yet implemented */
}

extern int gdbmach_set_breakpoint ( int type, unsigned long addr, size_t len,
				    int enable );
extern void gdbmach_init ( void );

#endif /* GDBMACH_H */