1*08f058f8Smpi /* $OpenBSD: db_watch.h,v 1.11 2019/11/07 13:16:25 mpi Exp $ */ 2d724e01aSderaadt /* $NetBSD: db_watch.h,v 1.9 1996/02/05 01:57:24 christos Exp $ */ 3df930be7Sderaadt 4df930be7Sderaadt /* 5df930be7Sderaadt * Mach Operating System 6b2471a9dSmickey * Copyright (c) 1993,1992,1991,1990 Carnegie Mellon University 7df930be7Sderaadt * All Rights Reserved. 8df930be7Sderaadt * 9df930be7Sderaadt * Permission to use, copy, modify and distribute this software and its 10df930be7Sderaadt * documentation is hereby granted, provided that both the copyright 11df930be7Sderaadt * notice and this permission notice appear in all copies of the 12df930be7Sderaadt * software, derivative works or modified versions, and any portions 13df930be7Sderaadt * thereof, and that both notices appear in supporting documentation. 14df930be7Sderaadt * 15b2471a9dSmickey * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16df930be7Sderaadt * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 17df930be7Sderaadt * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18df930be7Sderaadt * 19df930be7Sderaadt * Carnegie Mellon requests users of this software to return to 20df930be7Sderaadt * 21df930be7Sderaadt * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22df930be7Sderaadt * School of Computer Science 23df930be7Sderaadt * Carnegie Mellon University 24df930be7Sderaadt * Pittsburgh PA 15213-3890 25df930be7Sderaadt * 26b2471a9dSmickey * any improvements or extensions that they make and grant Carnegie Mellon 27b2471a9dSmickey * the rights to redistribute these changes. 28df930be7Sderaadt * 29df930be7Sderaadt * Author: David B. Golub, Carnegie Mellon University 30df930be7Sderaadt * Date: 10/90 31df930be7Sderaadt */ 32df930be7Sderaadt 33df930be7Sderaadt #ifndef _DDB_DB_WATCH_ 34df930be7Sderaadt #define _DDB_DB_WATCH_ 35df930be7Sderaadt 36df930be7Sderaadt /* 37df930be7Sderaadt * Watchpoint. 38df930be7Sderaadt */ 39df930be7Sderaadt typedef struct db_watchpoint { 40*08f058f8Smpi vaddr_t loaddr; /* from this address */ 41*08f058f8Smpi vaddr_t hiaddr; /* to this address */ 42df930be7Sderaadt struct db_watchpoint *link; /* link in in-use or free chain */ 43df930be7Sderaadt } *db_watchpoint_t; 44df930be7Sderaadt 45c4071fd1Smillert db_watchpoint_t db_watchpoint_alloc(void); 46c4071fd1Smillert void db_watchpoint_free(db_watchpoint_t); 47*08f058f8Smpi void db_set_watchpoint(vaddr_t, vsize_t); 48*08f058f8Smpi void db_delete_watchpoint(vaddr_t); 49c4071fd1Smillert void db_list_watchpoints(void); 50c4071fd1Smillert void db_deletewatch_cmd(db_expr_t, int, db_expr_t, char *); 51c4071fd1Smillert void db_watchpoint_cmd(db_expr_t, int, db_expr_t, char *); 52c4071fd1Smillert void db_listwatch_cmd(db_expr_t, int, db_expr_t, char *); 53c4071fd1Smillert void db_set_watchpoints(void); 54c4071fd1Smillert void db_clear_watchpoints(void); 55df930be7Sderaadt 56746e4008Sderaadt #endif /* _DDB_DB_WATCH_ */ 57