xref: /netbsd-src/sys/compat/linux/arch/mips/linux_ptrace.c (revision eda7c7bbe420d47af87753705799f9ed45f3aaf5)
1*eda7c7bbSmaxv /*	$NetBSD: linux_ptrace.c,v 1.10 2014/11/09 17:48:07 maxv Exp $ */
263d1ca84Smanu 
363d1ca84Smanu /*-
463d1ca84Smanu  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
563d1ca84Smanu  * All rights reserved.
663d1ca84Smanu  *
763d1ca84Smanu  * This code is derived from software contributed to The NetBSD Foundation
863d1ca84Smanu  * by Matthias Scheler and Emmanuel Dreyfus.
963d1ca84Smanu  *
1063d1ca84Smanu  * Redistribution and use in source and binary forms, with or without
1163d1ca84Smanu  * modification, are permitted provided that the following conditions
1263d1ca84Smanu  * are met:
1363d1ca84Smanu  * 1. Redistributions of source code must retain the above copyright
1463d1ca84Smanu  *    notice, this list of conditions and the following disclaimer.
1563d1ca84Smanu  * 2. Redistributions in binary form must reproduce the above copyright
1663d1ca84Smanu  *    notice, this list of conditions and the following disclaimer in the
1763d1ca84Smanu  *    documentation and/or other materials provided with the distribution.
1863d1ca84Smanu  *
1963d1ca84Smanu  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2063d1ca84Smanu  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2163d1ca84Smanu  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2263d1ca84Smanu  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2363d1ca84Smanu  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2463d1ca84Smanu  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2563d1ca84Smanu  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2663d1ca84Smanu  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2763d1ca84Smanu  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2863d1ca84Smanu  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2963d1ca84Smanu  * POSSIBILITY OF SUCH DAMAGE.
3063d1ca84Smanu  */
3163d1ca84Smanu 
32dab6ef8bSlukem #include <sys/cdefs.h>
33*eda7c7bbSmaxv __KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.10 2014/11/09 17:48:07 maxv Exp $");
34dab6ef8bSlukem 
3563d1ca84Smanu #include <sys/param.h>
3663d1ca84Smanu #include <sys/mount.h>
3763d1ca84Smanu #include <sys/proc.h>
3863d1ca84Smanu #include <sys/ptrace.h>
3963d1ca84Smanu #include <sys/systm.h>
4063d1ca84Smanu #include <sys/syscallargs.h>
4163d1ca84Smanu #include <uvm/uvm_extern.h>
4263d1ca84Smanu 
4363d1ca84Smanu #include <machine/reg.h>
4463d1ca84Smanu 
4563d1ca84Smanu #include <compat/linux/common/linux_types.h>
4663d1ca84Smanu #include <compat/linux/common/linux_ptrace.h>
4763d1ca84Smanu #include <compat/linux/common/linux_signal.h>
4863d1ca84Smanu 
4963d1ca84Smanu #include <compat/linux/common/linux_util.h>
5063d1ca84Smanu #include <compat/linux/common/linux_machdep.h>
5163d1ca84Smanu #include <compat/linux/common/linux_emuldata.h>
5263d1ca84Smanu #include <compat/linux/common/linux_exec.h>	/* for emul_linux */
5363d1ca84Smanu 
5463d1ca84Smanu #include <compat/linux/linux_syscallargs.h>
5563d1ca84Smanu 
5663d1ca84Smanu #include <lib/libkern/libkern.h>	/* for offsetof() */
5763d1ca84Smanu 
587e2790cfSdsl /* XXX write me! */
5963d1ca84Smanu int
linux_sys_ptrace_arch(struct lwp * l,const struct linux_sys_ptrace_args * uap,register_t * retval)607e2790cfSdsl linux_sys_ptrace_arch(struct lwp *l, const struct linux_sys_ptrace_args *uap, register_t *retval)
6163d1ca84Smanu {
6263d1ca84Smanu 	return 0;
6363d1ca84Smanu }
64