Lines Matching refs:watch
101 void db_watchpoint_free(register db_watchpoint_t watch);
124 register db_watchpoint_t watch;
126 if ((watch = db_free_watchpoints) != 0) {
127 db_free_watchpoints = watch->link;
128 return (watch);
134 watch = db_next_free_watchpoint;
137 return (watch);
141 db_watchpoint_free(register db_watchpoint_t watch)
143 watch->link = db_free_watchpoints;
144 db_free_watchpoints = watch;
153 register db_watchpoint_t watch;
159 for (watch = db_watchpoint_list; watch != 0; watch = watch->link) {
160 if (watch->task == task &&
161 (watch->loaddr == addr) &&
162 (watch->hiaddr == addr+size)) {
168 watch = db_watchpoint_alloc();
169 if (watch == 0) {
174 watch->task = task;
175 watch->loaddr = addr;
176 watch->hiaddr = addr+size;
178 watch->link = db_watchpoint_list;
179 db_watchpoint_list = watch;
189 register db_watchpoint_t watch;
192 for (prev = &db_watchpoint_list; (watch = *prev) != 0;
193 prev = &watch->link) {
194 if (watch->task == task &&
195 (watch->loaddr <= addr) &&
196 (addr < watch->hiaddr)) {
197 *prev = watch->link;
198 db_watchpoint_free(watch);
209 register db_watchpoint_t watch;
218 for (watch = db_watchpoint_list; watch != 0; watch = watch->link) {
219 if (watch->task == TASK_NULL)
222 task_id = db_lookup_task(watch->task);
224 db_printf("%*X", 2*sizeof(vm_offset_t), watch->task);
228 db_printf(" %*X %X\n", 2*sizeof(vm_offset_t), watch->loaddr,
229 watch->hiaddr - watch->loaddr);
311 register db_watchpoint_t watch;
315 for (watch = db_watchpoint_list; watch != 0; watch = watch->link) {
316 map = (watch->task)? watch->task->map: kernel_map;
318 vm_map_trunc_page(watch->loaddr),
319 vm_map_round_page(watch->hiaddr),
338 register db_watchpoint_t watch;
344 for (watch = db_watchpoint_list; watch != 0; watch = watch->link) {
345 if (watch->task == task_space) {
346 if ((watch->loaddr <= addr) && (addr < watch->hiaddr))
348 else if ((trunc_page(watch->loaddr) <= addr) &&
349 (addr < round_page(watch->hiaddr)))
350 found = watch;