]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_run.h
xnu-201.tar.gz
[apple/xnu.git] / osfmk / ddb / db_run.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 /*
26 * Mach Operating System
27 * Copyright (c) 1991 Carnegie Mellon University
28 * All Rights Reserved.
29 *
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
35 *
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39 *
40 * Carnegie Mellon requests users of this software to return to
41 *
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
46 *
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
49 */
50
51 /*
52 */
53
54 #ifndef _DDB_DB_RUN_H_
55 #define _DDB_DB_RUN_H_
56
57 #include <mach/boolean.h>
58 #include <machine/db_machdep.h>
59 #include <kern/task.h>
60
61
62 /* Prototypes for functions exported by this module.
63 */
64
65 boolean_t db_stop_at_pc(
66 boolean_t *is_breakpoint,
67 task_t task,
68 task_t space);
69
70 void db_restart_at_pc(
71 boolean_t watchpt,
72 task_t task);
73
74 void db_single_step(
75 db_regs_t *regs,
76 task_t task);
77
78 void db_single_step_cmd(
79 db_expr_t addr,
80 int have_addr,
81 db_expr_t count,
82 char * modif);
83
84 void db_trace_until_call_cmd(
85 db_expr_t addr,
86 int have_addr,
87 db_expr_t count,
88 char * modif);
89
90 void db_trace_until_matching_cmd(
91 db_expr_t addr,
92 int have_addr,
93 db_expr_t count,
94 char * modif);
95
96 void db_continue_cmd(
97 db_expr_t addr,
98 int have_addr,
99 db_expr_t count,
100 char * modif);
101
102 void db_continue_gdb(
103 db_expr_t addr,
104 int have_addr,
105 db_expr_t count,
106 char * modif);
107
108 boolean_t db_in_single_step(void);
109
110 #endif /* !_DDB_DB_RUN_H_ */