15b81b6b3SRodney W. Grimes /* 25b81b6b3SRodney W. Grimes * Mach Operating System 35b81b6b3SRodney W. Grimes * Copyright (c) 1991,1990 Carnegie Mellon University 45b81b6b3SRodney W. Grimes * All Rights Reserved. 55b81b6b3SRodney W. Grimes * 65b81b6b3SRodney W. Grimes * Permission to use, copy, modify and distribute this software and its 75b81b6b3SRodney W. Grimes * documentation is hereby granted, provided that both the copyright 85b81b6b3SRodney W. Grimes * notice and this permission notice appear in all copies of the 95b81b6b3SRodney W. Grimes * software, derivative works or modified versions, and any portions 105b81b6b3SRodney W. Grimes * thereof, and that both notices appear in supporting documentation. 115b81b6b3SRodney W. Grimes * 125b81b6b3SRodney W. Grimes * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 135b81b6b3SRodney W. Grimes * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 145b81b6b3SRodney W. Grimes * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 155b81b6b3SRodney W. Grimes * 165b81b6b3SRodney W. Grimes * Carnegie Mellon requests users of this software to return to 175b81b6b3SRodney W. Grimes * 185b81b6b3SRodney W. Grimes * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 195b81b6b3SRodney W. Grimes * School of Computer Science 205b81b6b3SRodney W. Grimes * Carnegie Mellon University 215b81b6b3SRodney W. Grimes * Pittsburgh PA 15213-3890 225b81b6b3SRodney W. Grimes * 235b81b6b3SRodney W. Grimes * any improvements or extensions that they make and grant Carnegie the 245b81b6b3SRodney W. Grimes * rights to redistribute these changes. 250edf66ecSRodney W. Grimes * 260edf66ecSRodney W. Grimes * $Id$ 275b81b6b3SRodney W. Grimes */ 280edf66ecSRodney W. Grimes 295b81b6b3SRodney W. Grimes /* 305b81b6b3SRodney W. Grimes * Author: David B. Golub, Carnegie Mellon University 315b81b6b3SRodney W. Grimes * Date: 10/90 325b81b6b3SRodney W. Grimes */ 335b81b6b3SRodney W. Grimes 345b81b6b3SRodney W. Grimes #ifndef _DDB_DB_WATCH_ 355b81b6b3SRodney W. Grimes #define _DDB_DB_WATCH_ 365b81b6b3SRodney W. Grimes 375b81b6b3SRodney W. Grimes #include <vm/vm_map.h> 385b81b6b3SRodney W. Grimes #include <machine/db_machdep.h> 395b81b6b3SRodney W. Grimes 405b81b6b3SRodney W. Grimes /* 415b81b6b3SRodney W. Grimes * Watchpoint. 425b81b6b3SRodney W. Grimes */ 435b81b6b3SRodney W. Grimes 445b81b6b3SRodney W. Grimes typedef struct db_watchpoint { 455b81b6b3SRodney W. Grimes vm_map_t map; /* in this map */ 465b81b6b3SRodney W. Grimes db_addr_t loaddr; /* from this address */ 475b81b6b3SRodney W. Grimes db_addr_t hiaddr; /* to this address */ 485b81b6b3SRodney W. Grimes struct db_watchpoint *link; /* link in in-use or free chain */ 495b81b6b3SRodney W. Grimes } *db_watchpoint_t; 505b81b6b3SRodney W. Grimes 515b81b6b3SRodney W. Grimes extern boolean_t db_find_watchpoint(/* vm_map_t map, db_addr_t addr, 525b81b6b3SRodney W. Grimes db_regs_t *regs */); 535b81b6b3SRodney W. Grimes extern void db_set_watchpoints(); 545b81b6b3SRodney W. Grimes extern void db_clear_watchpoints(); 555b81b6b3SRodney W. Grimes 565b81b6b3SRodney W. Grimes extern void db_set_watchpoint(/* vm_map_t map, db_addr_t addr, vm_size_t size */); 575b81b6b3SRodney W. Grimes extern void db_delete_watchpoint(/* vm_map_t map, db_addr_t addr */); 585b81b6b3SRodney W. Grimes extern void db_list_watchpoints(); 595b81b6b3SRodney W. Grimes 605b81b6b3SRodney W. Grimes #endif _DDB_DB_WATCH_ 61