summaryrefslogtreecommitdiffhomepage
path: root/arch/nt32/psxdbg.h
blob: ef59445d1493b51e04e4009d2e4337e881e7d061 (plain)
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
#ifndef _PSXDBG_H_
#define _PSXDBG_H_

struct __dbg_event;

struct __dbg_vtbl {
	int (*dbg_attach)(pid_t);
	int (*dbg_detach)(int);

	int (*dbg_spawn)(const char *, char **, char **);
	int (*dbg_fork)(void);
	int (*dbg_suspend)(int);
	int (*dbg_kill)(int);

	int (*dbg_rbreak)(int);
	int (*dbg_tbreak)(int);
	int (*dbg_lbreak)(int);

	int (*dbg_event_query_one)(int, struct __dbg_event *);
	int (*dbg_event_query_all)(int, struct __dbg_event *, int);

	int (*dbg_event_acquire)(int, struct __dbg_event *);
	int (*dbg_event_respond)(int, struct __dbg_event *);

	int (*dbg_query_cpid)(int);
	int (*dbg_query_syspid)(int);

	int (*dbg_common_error)(void);
	int (*dbg_native_error)(void);
};

#endif