summaryrefslogtreecommitdiffhomepage
path: root/src/arch/nt32/debug.c
blob: cfa6aee9839223bb41965d624bb52268ca49d9b4 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <stdint.h>
#include <stddef.h>
#include <signal.h>
#include <unistd.h>
#include <sys/debug.h>
#include "psxdbg.h"

extern const struct __dbg_vtbl * __db_vtbl;


int __dbg_attach(pid_t pid)
{
	return __db_vtbl->dbg_attach(pid);
}

int __dbg_detach(int pfd)
{
	return __db_vtbl->dbg_detach(pfd);
}

int __dbg_spawn(const char * path, char ** argv, char ** envp)
{
	return __db_vtbl->dbg_spawn(path,argv,envp);
}

int __dbg_fork()
{
	return __db_vtbl->dbg_fork();
}

int __dbg_suspend(int pfd)
{
	return __db_vtbl->dbg_suspend(pfd);
}

int __dbg_kill(int pfd)
{
	return __db_vtbl->dbg_kill(pfd);
}

int __dbg_event_query_one(int pfd, struct __dbg_event * evt)
{
	return __db_vtbl->dbg_event_query_one(pfd,evt);
}

int __dbg_event_query_all(int pfd, struct __dbg_event evt[], int nelem)
{
	return __db_vtbl->dbg_event_query_all(pfd,evt,nelem);
}

int __dbg_event_acquire(int pfd, struct __dbg_event * evt)
{
	return __db_vtbl->dbg_event_acquire(pfd,evt);
}

int __dbg_event_respond(int pfd, struct __dbg_event * evt)
{
	return __db_vtbl->dbg_event_respond(pfd,evt);
}

int __dbg_query_cpid(int pfd)
{
	return __db_vtbl->dbg_query_cpid(pfd);
}

int __dbg_query_syspid(int pfd)
{
	return __db_vtbl->dbg_query_syspid(pfd);
}

int __dbg_common_error(void)
{
	return __db_vtbl->dbg_common_error();
}

int __dbg_native_error(void)
{
	return __db_vtbl->dbg_native_error();
}