xref: /onnv-gate/usr/src/cmd/sgs/librtld_db/demo/sparc/rdb_mach.h (revision 12927:a27c46eb192b)
1*12927SRod.Evans@Sun.COM /*
2*12927SRod.Evans@Sun.COM  * CDDL HEADER START
3*12927SRod.Evans@Sun.COM  *
4*12927SRod.Evans@Sun.COM  * The contents of this file are subject to the terms of the
5*12927SRod.Evans@Sun.COM  * Common Development and Distribution License (the "License").
6*12927SRod.Evans@Sun.COM  * You may not use this file except in compliance with the License.
7*12927SRod.Evans@Sun.COM  *
8*12927SRod.Evans@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*12927SRod.Evans@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*12927SRod.Evans@Sun.COM  * See the License for the specific language governing permissions
11*12927SRod.Evans@Sun.COM  * and limitations under the License.
12*12927SRod.Evans@Sun.COM  *
13*12927SRod.Evans@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*12927SRod.Evans@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*12927SRod.Evans@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*12927SRod.Evans@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*12927SRod.Evans@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*12927SRod.Evans@Sun.COM  *
19*12927SRod.Evans@Sun.COM  * CDDL HEADER END
20*12927SRod.Evans@Sun.COM  */
21*12927SRod.Evans@Sun.COM 
22*12927SRod.Evans@Sun.COM /*
23*12927SRod.Evans@Sun.COM  * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
24*12927SRod.Evans@Sun.COM  */
25*12927SRod.Evans@Sun.COM #ifndef _RDB_MACH_H
26*12927SRod.Evans@Sun.COM #define	_RDB_MACH_H
27*12927SRod.Evans@Sun.COM 
28*12927SRod.Evans@Sun.COM #include <sys/psw.h>
29*12927SRod.Evans@Sun.COM #include <procfs.h>
30*12927SRod.Evans@Sun.COM 
31*12927SRod.Evans@Sun.COM #ifdef	__cplusplus
32*12927SRod.Evans@Sun.COM extern "C" {
33*12927SRod.Evans@Sun.COM #endif
34*12927SRod.Evans@Sun.COM 
35*12927SRod.Evans@Sun.COM #define	ERRBIT	PSR_C
36*12927SRod.Evans@Sun.COM 
37*12927SRod.Evans@Sun.COM struct ps_prochandle;
38*12927SRod.Evans@Sun.COM 
39*12927SRod.Evans@Sun.COM /*
40*12927SRod.Evans@Sun.COM  * BreakPoint instruction
41*12927SRod.Evans@Sun.COM  */
42*12927SRod.Evans@Sun.COM typedef	unsigned	bptinstr_t;
43*12927SRod.Evans@Sun.COM 
44*12927SRod.Evans@Sun.COM #define	BPINSTR		0x91d02001	/* ta   ST_BREAKPOINT */
45*12927SRod.Evans@Sun.COM 
46*12927SRod.Evans@Sun.COM /*
47*12927SRod.Evans@Sun.COM  * PLT section type
48*12927SRod.Evans@Sun.COM  */
49*12927SRod.Evans@Sun.COM #define	PLTSECTT	SHT_PROGBITS
50*12927SRod.Evans@Sun.COM 
51*12927SRod.Evans@Sun.COM extern void	display_in_regs(struct ps_prochandle *, pstatus_t *);
52*12927SRod.Evans@Sun.COM extern void	display_local_regs(struct ps_prochandle *, pstatus_t *);
53*12927SRod.Evans@Sun.COM extern void	display_out_regs(struct ps_prochandle *, pstatus_t *);
54*12927SRod.Evans@Sun.COM extern void	display_special_regs(struct ps_prochandle *, pstatus_t *);
55*12927SRod.Evans@Sun.COM extern void	display_global_regs(struct ps_prochandle *, pstatus_t *);
56*12927SRod.Evans@Sun.COM 
57*12927SRod.Evans@Sun.COM #ifdef	__cplusplus
58*12927SRod.Evans@Sun.COM }
59*12927SRod.Evans@Sun.COM #endif
60*12927SRod.Evans@Sun.COM 
61*12927SRod.Evans@Sun.COM #endif /* _RDB_MACH_H */
62