summaryrefslogtreecommitdiffhomepage
path: root/src/arch/nt64/debug.c
blob: efb773b490ea8e36f6d1a282545527aed5e6f22e (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#include <stdint.h>
#include <stddef.h>
#include <signal.h>
#include <unistd.h>
#include <sys/debug.h>
#include "syscall.h"

int __dbg_attach(pid_t pid)
{
	return syscall(SYS_dbg_attach,pid);
}

int __dbg_detach(int pfd)
{
	return syscall(SYS_dbg_detach,pfd);
}

int __dbg_spawn(const char * path,
		char ** argv, char ** envp,
		const struct __strace * strace)
{
	return syscall(SYS_dbg_spawn,path,argv,envp,strace);
}

int __dbg_fork()
{
	return syscall(SYS_dbg_fork);
}

int __dbg_kill(int pfd)
{
	return syscall(SYS_dbg_kill,pfd);
}

int __dbg_rbreak(int pfd)
{
	return syscall(SYS_dbg_rbreak,pfd);
}

int __dbg_tbreak(int pfd)
{
	return syscall(SYS_dbg_tbreak,pfd);
}

int __dbg_lbreak(int pfd)
{
	return syscall(SYS_dbg_lbreak,pfd);
}

int __dbg_suspend_thread(int pfd, pid_t tid)
{
	return syscall(SYS_dbg_suspend_thread,pfd,tid);
}

int __dbg_resume_thread(int pfd, pid_t tid)
{
	return syscall(SYS_dbg_resume_thread,pfd,tid);
}

int __dbg_event_query_one(int pfd, struct __dbg_event * evt)
{
	return syscall(SYS_dbg_event_query_one,pfd,evt);
}

int __dbg_event_query_all(int pfd, struct __dbg_event evt[], int nelem)
{
	return syscall(SYS_dbg_event_query_all,pfd,evt,nelem);
}

int __dbg_event_acquire(int pfd, struct __dbg_event * evt)
{
	return syscall(SYS_dbg_event_acquire,pfd,evt);
}

int __dbg_event_respond(int pfd, struct __dbg_event * evt)
{
	return syscall(SYS_dbg_event_respond,pfd,evt);
}

int __dbg_query_cpid(int pfd)
{
	return syscall(SYS_dbg_query_cpid,pfd);
}

int __dbg_query_syspid(int pfd)
{
	return syscall(SYS_dbg_query_syspid,pfd);
}

int __dbg_common_error(void)
{
	return syscall(SYS_dbg_common_error);
}

int __dbg_native_error(void)
{
	return syscall(SYS_dbg_native_error);
}