]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/kern/debug.h
a2d96f04739d290f782deaebe39c0451ea4941fb
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@
26 #ifndef _KERN_DEBUG_H_
27 #define _KERN_DEBUG_H_
29 #include <sys/appleapiopts.h>
31 #ifdef __APPLE_API_PRIVATE
33 extern unsigned int systemLogDiags
;
35 #ifdef MACH_KERNEL_PRIVATE
37 extern unsigned int halt_in_debugger
;
39 extern unsigned int switch_debugger
;
41 extern unsigned int current_debugger
;
43 #define KDP_CUR_DB 0x1
44 #define KDB_CUR_DB 0x2
46 extern unsigned int active_debugger
;
47 extern unsigned int debug_mode
;
48 extern unsigned int disableDebugOuput
;
50 extern unsigned int panicDebugging
;
51 extern unsigned int logPanicDataToScreen
;
53 extern int db_run_mode
;
55 /* modes the system may be running in */
61 #define STEP_CONTINUE 4
62 #define STEP_INVISIBLE 5
64 #define STEP_TRACE 7 /* Show all calls to functions and returns */
66 extern char *panicstr
;
68 extern unsigned int nestedpanic
;
70 extern char *debug_buf
;
71 extern char *debug_buf_ptr
;
72 extern unsigned int debug_buf_size
;
74 extern void debug_log_init(void);
75 extern void debug_putc(char);
77 #endif /* MACH_KERNEL_PRIVATE */
86 #define DB_KDP_BP_DIS 0x80
87 #define DB_LOG_PI_SCRN 0x100
89 #endif /* __APPLE_API_PRIVATE */
91 #endif /* _KERN_DEBUG_H_ */