]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_examine.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ddb / db_examine.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * @OSF_COPYRIGHT@
32 */
33 /*
34 * HISTORY
35 *
36 * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez
37 * Import of Mac OS X kernel (~semeria)
38 *
39 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
40 * Import of OSF Mach kernel (~mburg)
41 *
42 * Revision 1.1.7.2 1996/01/09 19:15:43 devrcs
43 * Function prototypes for db_print_loc() & db_print_inst().
44 * [1995/12/01 21:42:06 jfraser]
45 *
46 * Merged '64-bit safe' changes from DEC alpha port.
47 * [1995/11/21 18:03:03 jfraser]
48 *
49 * Revision 1.1.7.1 1994/09/23 01:18:55 ezf
50 * change marker to not FREE
51 * [1994/09/22 21:09:49 ezf]
52 *
53 * Revision 1.1.2.4 1993/09/17 21:34:33 robert
54 * change marker to OSF_FREE_COPYRIGHT
55 * [1993/09/17 21:27:11 robert]
56 *
57 * Revision 1.1.2.3 1993/08/11 22:12:10 elliston
58 * Add ANSI Prototypes. CR #9523.
59 * [1993/08/11 03:33:11 elliston]
60 *
61 * Revision 1.1.2.2 1993/07/27 18:27:12 elliston
62 * Add ANSI prototypes. CR #9523.
63 * [1993/07/27 18:11:28 elliston]
64 *
65 * $EndLog$
66 */
67
68 #ifndef _DDB_DB_EXAMINE_H_
69 #define _DDB_DB_EXAMINE_H_
70
71 #include <machine/db_machdep.h>
72 #include <kern/task.h>
73
74 /* Prototypes for functions exported by this module.
75 */
76
77 void db_examine_cmd(
78 db_expr_t addr,
79 int have_addr,
80 db_expr_t count,
81 char * modif);
82
83 void db_examine_forward(
84 db_expr_t addr,
85 int have_addr,
86 db_expr_t count,
87 char * modif);
88
89 void db_examine_backward(
90 db_expr_t addr,
91 int have_addr,
92 db_expr_t count,
93 char * modif);
94
95 void db_examine(
96 db_addr_t addr,
97 char * fmt, /* format string */
98 int count, /* repeat count */
99 task_t task);
100
101 void db_print_cmd(void);
102
103 void db_print_loc(
104 db_addr_t loc,
105 task_t task);
106
107 void
108 db_print_inst(
109 db_addr_t loc,
110 task_t task);
111
112 void db_print_loc_and_inst(
113 db_addr_t loc,
114 task_t task);
115
116 void db_search_cmd(void);
117
118 void db_search(
119 db_addr_t addr,
120 int size,
121 db_expr_t value,
122 db_expr_t mask,
123 unsigned int count,
124 task_t task);
125
126 #endif /* !_DDB_DB_EXAMINE_H_ */