db_watch.h 1.9 KB

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