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