FreeBSD/Linux Kernel Cross Reference
sys/ttd/kernel_ttd.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1992 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * Definitions for Kernel TTD
28 *
29 * HISTORY:
30 * $Log: kernel_ttd.h,v $
31 * Revision 2.2 93/05/10 23:24:23 rvb
32 * Checkin for MK80 branch.
33 * [93/05/10 15:04:38 grm]
34 *
35 * Revision 2.1.2.1 93/03/03 14:36:12 grm
36 * Gratuitious checkin for branch reasons.
37 * [93/03/03 grm]
38 *
39 * Revision 2.1.1.3 92/10/23 21:15:25 grm
40 * Added single stepping boolean.
41 * [92/10/23 grm]
42 *
43 * Revision 2.1.1.2 92/10/08 14:26:16 grm
44 * Changed the kttd_breakpoint structure and removed some cruft.
45 * [92/10/08 grm]
46 *
47 * Revision 2.1.1.1 92/09/25 15:14:26 grm
48 * Intial checkin.
49 * [92/09/25 grm]
50 *
51 *
52 */
53 /***********************************************************
54 Copyright 1992 by Digital Equipment Corporation, Maynard, Massachusetts,
55
56 All Rights Reserved
57
58 Permission to use, copy, modify, and distribute this software and its
59 documentation for any purpose and without fee is hereby granted, provided
60 that the above copyright notice appear in all copies and that both that
61 copyright notice and this permission notice appear in supporting
62 documentation, and that the name of Digital not be used in advertising
63 or publicity pertaining to distribution of the software without specific,
64 written prior permission. Digital makes no representations about the
65 suitability of this software for any purpose. It is provided "as is"
66 without express or implied warranty.
67
68 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
69 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
70 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
71 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
72 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
73 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
74 SOFTWARE.
75
76 ******************************************************************/
77
78 #ifndef _KERNEL_TTD_H_
79 #define _KERNEL_TTD_H_
80
81 #include <ttd/ttd_types.h>
82
83 /* State of the single debug target -- i.e the kernel */
84
85 #define KTTD_MAXBPT 500 /* Need room for debugger's hidden breakpoints */
86
87 typedef ttd_saved_inst *kttd_break_ptr;
88
89 typedef struct {
90 ttd_address address;
91 ttd_saved_inst saved_inst;
92 ttd_flavor flavor;
93 ttd_thread thread;
94 boolean_t free;
95 } kttd_breakpoint;
96
97 typedef unsigned kttd_breakno;
98
99 #endif /* _KERNEL_TTD_H_ */
Cache object: b02acd44dd111513ac968671dfdb2748
|