xref: /openbsd-src/sys/arch/powerpc/include/ptrace.h (revision ec3ac51a363d56f7ba5b47397e158a3b73731092)
1*ec3ac51aSkettenis /*	$OpenBSD: ptrace.h,v 1.3 2006/05/15 21:02:44 kettenis Exp $	*/
222892db0Srahnds /*	$NetBSD: ptrace.h,v 1.7 1995/01/26 19:47:10 mycroft Exp $	*/
322892db0Srahnds 
422892db0Srahnds /*
522892db0Srahnds  * Copyright (c) 1993 Christopher G. Demetriou
622892db0Srahnds  * All rights reserved.
722892db0Srahnds  *
822892db0Srahnds  * Redistribution and use in source and binary forms, with or without
922892db0Srahnds  * modification, are permitted provided that the following conditions
1022892db0Srahnds  * are met:
1122892db0Srahnds  * 1. Redistributions of source code must retain the above copyright
1222892db0Srahnds  *    notice, this list of conditions and the following disclaimer.
1322892db0Srahnds  * 2. Redistributions in binary form must reproduce the above copyright
1422892db0Srahnds  *    notice, this list of conditions and the following disclaimer in the
1522892db0Srahnds  *    documentation and/or other materials provided with the distribution.
1622892db0Srahnds  * 3. All advertising materials mentioning features or use of this software
1722892db0Srahnds  *    must display the following acknowledgement:
1822892db0Srahnds  *      This product includes software developed by Christopher G. Demetriou.
1922892db0Srahnds  * 4. The name of the author may not be used to endorse or promote products
2022892db0Srahnds  *    derived from this software without specific prior written permission
2122892db0Srahnds  *
2222892db0Srahnds  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2322892db0Srahnds  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2422892db0Srahnds  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2522892db0Srahnds  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2622892db0Srahnds  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2722892db0Srahnds  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2822892db0Srahnds  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2922892db0Srahnds  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3022892db0Srahnds  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3122892db0Srahnds  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3222892db0Srahnds  */
3322892db0Srahnds #ifndef _POWERPC_PTRACE_H_
3422892db0Srahnds #define _POWERPC_PTRACE_H_
3522892db0Srahnds 
3622892db0Srahnds /*
3722892db0Srahnds  * powerpc-dependent ptrace definitions
3822892db0Srahnds  */
3922892db0Srahnds #define	PT_STEP		(PT_FIRSTMACH + 0)
4022892db0Srahnds #define	PT_GETREGS	(PT_FIRSTMACH + 1)
4122892db0Srahnds #define	PT_SETREGS	(PT_FIRSTMACH + 2)
4222892db0Srahnds #define	PT_GETFPREGS	(PT_FIRSTMACH + 3)
4322892db0Srahnds #define	PT_SETFPREGS	(PT_FIRSTMACH + 4)
4422892db0Srahnds 
4522892db0Srahnds #endif /* !_POWERPC_PTRACE_H_ */
46