Lines Matching refs:watch
62 db_watchpoint_t watch;
64 if ((watch = db_free_watchpoints) != 0) {
65 db_free_watchpoints = watch->link;
66 return (watch);
72 watch = db_next_free_watchpoint;
75 return (watch);
79 db_watchpoint_free(db_watchpoint_t watch)
81 watch->link = db_free_watchpoints;
82 db_free_watchpoints = watch;
88 db_watchpoint_t watch;
94 for (watch = db_watchpoint_list; watch != 0; watch = watch->link)
95 if (watch->loaddr == addr && watch->hiaddr == addr + size) {
100 watch = db_watchpoint_alloc();
101 if (watch == 0) {
106 watch->loaddr = addr;
107 watch->hiaddr = addr+size;
109 watch->link = db_watchpoint_list;
110 db_watchpoint_list = watch;
118 db_watchpoint_t watch;
121 for (prev = &db_watchpoint_list; (watch = *prev) != 0;
122 prev = &watch->link)
123 if (watch->loaddr <= addr && addr < watch->hiaddr) {
124 *prev = watch->link;
125 db_watchpoint_free(watch);
135 db_watchpoint_t watch;
143 for (watch = db_watchpoint_list; watch != 0; watch = watch->link)
145 watch->loaddr, watch->hiaddr - watch->loaddr);
181 db_watchpoint_t watch;
184 for (watch = db_watchpoint_list; watch != 0;
185 watch = watch->link)
186 pmap_protect(pmap_kernel(), trunc_page(watch->loaddr),
187 round_page(watch->hiaddr), PROT_READ);