|
|
1.1 ! root 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: #ifndef _KERN_DEBUG_H_ ! 23: #define _KERN_DEBUG_H_ ! 24: ! 25: ! 26: #ifdef MACH_KERNEL_PRIVATE ! 27: ! 28: extern unsigned int halt_in_debugger; ! 29: ! 30: extern unsigned int switch_debugger; ! 31: ! 32: extern unsigned int current_debugger; ! 33: #define NO_CUR_DB 0x0 ! 34: #define KDP_CUR_DB 0x1 ! 35: #define KDB_CUR_DB 0x2 ! 36: ! 37: extern unsigned int active_debugger; ! 38: extern unsigned int debug_mode; ! 39: extern unsigned int disableDebugOuput; ! 40: ! 41: extern int db_run_mode; ! 42: ! 43: /* modes the system may be running in */ ! 44: ! 45: #define STEP_NONE 0 ! 46: #define STEP_ONCE 1 ! 47: #define STEP_RETURN 2 ! 48: #define STEP_CALLT 3 ! 49: #define STEP_CONTINUE 4 ! 50: #define STEP_INVISIBLE 5 ! 51: #define STEP_COUNT 6 ! 52: #define STEP_TRACE 7 /* Show all calls to functions and returns */ ! 53: ! 54: extern char *panicstr; ! 55: ! 56: extern unsigned int nestedpanic; ! 57: ! 58: #endif /* MACH_KERNEL_PRIVATE */ ! 59: ! 60: #define DB_HALT 0x1 ! 61: #define DB_PRT 0x2 ! 62: #define DB_NMI 0x4 ! 63: #define DB_KPRT 0x8 ! 64: #define DB_KDB 0x10 ! 65: ! 66: #endif /* _KERN_DEBUG_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.