|
|
1.1.1.2 ! root 1: /* 1.1 root 2: * Mach Operating System 3: * Copyright (c) 1991,1990 Carnegie Mellon University 4: * All Rights Reserved. 1.1.1.2 ! root 5: * 1.1 root 6: * Permission to use, copy, modify and distribute this software and its 7: * documentation is hereby granted, provided that both the copyright 8: * notice and this permission notice appear in all copies of the 9: * software, derivative works or modified versions, and any portions 10: * thereof, and that both notices appear in supporting documentation. 1.1.1.2 ! root 11: * 1.1 root 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 1.1.1.2 ! root 15: * 1.1 root 16: * Carnegie Mellon requests users of this software to return to 1.1.1.2 ! root 17: * 1.1 root 18: * Software Distribution Coordinator or [email protected] 19: * School of Computer Science 20: * Carnegie Mellon University 21: * Pittsburgh PA 15213-3890 1.1.1.2 ! root 22: * 1.1 root 23: * any improvements or extensions that they make and grant Carnegie Mellon 24: * the rights to redistribute these changes. 25: */ 26: /* 27: * Author: David B. Golub, Carnegie Mellon University 28: * Date: 10/90 29: */ 30: 31: #include "mach_kdb.h" 32: #if MACH_KDB 33: 34: #ifndef _DDB_DB_WATCH_ 35: #define _DDB_DB_WATCH_ 36: 37: #include <mach/machine/vm_types.h> 38: #include <kern/task.h> 39: #include <machine/db_machdep.h> 40: 41: /* 42: * Watchpoint. 43: */ 44: 45: typedef struct db_watchpoint { 46: task_t task; /* in this map */ 47: db_addr_t loaddr; /* from this address */ 48: db_addr_t hiaddr; /* to this address */ 49: struct db_watchpoint *link; /* link in in-use or free chain */ 50: } *db_watchpoint_t; 51: 52: extern boolean_t db_find_watchpoint(/* task_t task, db_addr_t addr, 53: db_regs_t *regs */); 54: extern void db_set_watchpoints(); 55: extern void db_clear_watchpoints(); 56: 57: extern void db_set_watchpoint(/* task_t task, db_addr_t addr, vm_size_t size */); 58: extern void db_delete_watchpoint(/* task_t task, db_addr_t addr */); 59: extern void db_list_watchpoints(); 60: 1.1.1.2 ! root 61: #endif /* _DDB_DB_WATCH_ */ 1.1 root 62: 1.1.1.2 ! root 63: #endif /* MACH_KDB */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.