]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_watch.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
31 * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez
32 * Import of Mac OS X kernel (~semeria)
34 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
35 * Import of OSF Mach kernel (~mburg)
37 * Revision 1.1.6.1 1994/09/23 01:23:04 ezf
38 * change marker to not FREE
39 * [1994/09/22 21:11:39 ezf]
41 * Revision 1.1.2.4 1993/07/27 18:28:34 elliston
42 * Add ANSI prototypes. CR #9523.
43 * [1993/07/27 18:13:34 elliston]
45 * Revision 1.1.2.3 1993/06/07 22:07:00 jeffc
46 * CR9176 - ANSI C violations: trailing tokens on CPP
47 * directives, extra semicolons after decl_ ..., asm keywords
48 * [1993/06/07 18:57:38 jeffc]
50 * Revision 1.1.2.2 1993/06/02 23:13:21 jeffc
51 * Added to OSF/1 R1.3 from NMK15.0.
52 * [1993/06/02 20:57:59 jeffc]
54 * Revision 1.1 1992/09/30 02:24:28 robert
61 * Revision 2.5 91/10/09 16:04:47 af
62 * Revision 2.4.3.1 91/10/05 13:09:14 jeffreyh
63 * Changed "map" field of db_watchpoint structure to "task",
64 * and also changed paramters of function declarations.
67 * Revision 2.4.3.1 91/10/05 13:09:14 jeffreyh
68 * Changed "map" field of db_watchpoint structure to "task",
69 * and also changed paramters of function declarations.
72 * Revision 2.4 91/05/14 15:37:46 mrt
73 * Correcting copyright
75 * Revision 2.3 91/02/05 17:07:31 mrt
76 * Changed to new Mach copyright
77 * [91/01/31 16:20:09 mrt]
79 * Revision 2.2 90/10/25 14:44:21 rwd
80 * Generalized the watchpoint support.
88 * Mach Operating System
89 * Copyright (c) 1991,1990 Carnegie Mellon University
90 * All Rights Reserved.
92 * Permission to use, copy, modify and distribute this software and its
93 * documentation is hereby granted, provided that both the copyright
94 * notice and this permission notice appear in all copies of the
95 * software, derivative works or modified versions, and any portions
96 * thereof, and that both notices appear in supporting documentation.
98 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
99 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
100 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
102 * Carnegie Mellon requests users of this software to return to
104 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
105 * School of Computer Science
106 * Carnegie Mellon University
107 * Pittsburgh PA 15213-3890
109 * any improvements or extensions that they make and grant Carnegie Mellon
110 * the rights to redistribute these changes.
115 * Author: David B. Golub, Carnegie Mellon University
119 #ifndef _DDB_DB_WATCH_H_
120 #define _DDB_DB_WATCH_H_
122 #include <mach/machine/vm_types.h>
123 #include <kern/task.h>
124 #include <machine/db_machdep.h>
130 typedef struct db_watchpoint
{
131 task_t task
; /* in this map */
132 db_addr_t loaddr
; /* from this address */
133 db_addr_t hiaddr
; /* to this address */
134 struct db_watchpoint
*link
; /* link in in-use or free chain */
139 /* Prototypes for functions exported by this module.
142 void db_deletewatch_cmd(
148 void db_watchpoint_cmd(
154 void db_listwatch_cmd(void);
156 void db_clear_watchpoints(void);
158 void db_set_watchpoints(void);
160 boolean_t
db_find_watchpoint(
165 #endif /* !_DDB_DB_WATCH_H_ */