Blame src/arch/nt64/debug.c

65a872
#include <stdint.h>
65a872
#include <stddef.h>
65a872
#include <signal.h>
65a872
#include <unistd.h>
65a872
#include <sys/debug.h>
be0101
#include "syscall.h"
65a872
65a872
int __dbg_attach(pid_t pid)
65a872
{
be0101
	return syscall(SYS_dbg_attach,pid);
65a872
}
65a872
65a872
int __dbg_detach(int pfd)
65a872
{
be0101
	return syscall(SYS_dbg_detach,pfd);
65a872
}
65a872
65a872
int __dbg_spawn(const char * path, char ** argv, char ** envp)
65a872
{
be0101
	return syscall(SYS_dbg_spawn,path,argv,envp);
65a872
}
65a872
65a872
int __dbg_fork()
65a872
{
be0101
	return syscall(SYS_dbg_fork);
65a872
}
65a872
65a872
int __dbg_suspend(int pfd)
65a872
{
be0101
	return syscall(SYS_dbg_suspend,pfd);
65a872
}
65a872
65a872
int __dbg_kill(int pfd)
65a872
{
be0101
	return syscall(SYS_dbg_kill,pfd);
65a872
}
65a872
4085aa
int __dbg_rbreak(int pfd)
4085aa
{
be0101
	return syscall(SYS_dbg_rbreak,pfd);
4085aa
}
4085aa
4085aa
int __dbg_tbreak(int pfd)
4085aa
{
be0101
	return syscall(SYS_dbg_tbreak,pfd);
4085aa
}
4085aa
4085aa
int __dbg_lbreak(int pfd)
4085aa
{
be0101
	return syscall(SYS_dbg_lbreak,pfd);
4085aa
}
4085aa
65a872
int __dbg_event_query_one(int pfd, struct __dbg_event * evt)
65a872
{
be0101
	return syscall(SYS_dbg_event_query_one,pfd,evt);
65a872
}
65a872
65a872
int __dbg_event_query_all(int pfd, struct __dbg_event evt[], int nelem)
65a872
{
be0101
	return syscall(SYS_dbg_event_query_all,pfd,evt,nelem);
65a872
}
65a872
65a872
int __dbg_event_acquire(int pfd, struct __dbg_event * evt)
65a872
{
be0101
	return syscall(SYS_dbg_event_acquire,pfd,evt);
65a872
}
65a872
65a872
int __dbg_event_respond(int pfd, struct __dbg_event * evt)
65a872
{
be0101
	return syscall(SYS_dbg_event_respond,pfd,evt);
65a872
}
65a872
65a872
int __dbg_query_cpid(int pfd)
65a872
{
be0101
	return syscall(SYS_dbg_query_cpid,pfd);
65a872
}
65a872
65a872
int __dbg_query_syspid(int pfd)
65a872
{
be0101
	return syscall(SYS_dbg_query_syspid,pfd);
65a872
}
65a872
65a872
int __dbg_common_error(void)
65a872
{
be0101
	return syscall(SYS_dbg_common_error);
65a872
}
65a872
65a872
int __dbg_native_error(void)
65a872
{
be0101
	return syscall(SYS_dbg_native_error);
65a872
}