]> git.saurik.com Git - apple/xnu.git/blame - osfmk/ddb/db_run.h
xnu-792.10.96.tar.gz
[apple/xnu.git] / osfmk / ddb / db_run.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
37839358
A
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.
1c79356b 11 *
37839358
A
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
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
37839358
A
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.
1c79356b
A
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
65boolean_t db_stop_at_pc(
66 boolean_t *is_breakpoint,
67 task_t task,
68 task_t space);
69
70void db_restart_at_pc(
71 boolean_t watchpt,
72 task_t task);
73
74void db_single_step(
75 db_regs_t *regs,
76 task_t task);
77
78void db_single_step_cmd(
79 db_expr_t addr,
80 int have_addr,
81 db_expr_t count,
82 char * modif);
83
84void db_trace_until_call_cmd(
85 db_expr_t addr,
86 int have_addr,
87 db_expr_t count,
88 char * modif);
89
90void db_trace_until_matching_cmd(
91 db_expr_t addr,
92 int have_addr,
93 db_expr_t count,
94 char * modif);
95
96void db_continue_cmd(
97 db_expr_t addr,
98 int have_addr,
99 db_expr_t count,
100 char * modif);
101
102void db_continue_gdb(
103 db_expr_t addr,
104 int have_addr,
105 db_expr_t count,
106 char * modif);
107
108boolean_t db_in_single_step(void);
109
110#endif /* !_DDB_DB_RUN_H_ */