| 69 | vm_size_t size); |
| 70 | |
| 71 | static db_watchpoint_t |
| 72 | db_watchpoint_alloc(void) |
| 73 | { |
| 74 | db_watchpoint_t watch; |
| 75 | |
| 76 | if ((watch = db_free_watchpoints) != 0) { |
| 77 | db_free_watchpoints = watch->link; |
| 78 | return (watch); |
| 79 | } |
| 80 | if (db_next_free_watchpoint == &db_watch_table[NWATCHPOINTS]) { |
| 81 | db_printf("All watchpoints used.\n"); |
| 82 | return (0); |
| 83 | } |
| 84 | watch = db_next_free_watchpoint; |
| 85 | db_next_free_watchpoint++; |
| 86 | |
| 87 | return (watch); |
| 88 | } |
| 89 | |
| 90 | static void |
| 91 | db_watchpoint_free(db_watchpoint_t watch) |
no test coverage detected