| 756 | } |
| 757 | |
| 758 | static void |
| 759 | db_watchdog(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4) |
| 760 | { |
| 761 | db_expr_t old_radix, tout; |
| 762 | int err, i; |
| 763 | |
| 764 | old_radix = db_radix; |
| 765 | db_radix = 10; |
| 766 | err = db_expression(&tout); |
| 767 | db_skip_to_eol(); |
| 768 | db_radix = old_radix; |
| 769 | |
| 770 | /* If no argument is provided the watchdog will just be disabled. */ |
| 771 | if (err == 0) { |
| 772 | db_printf("No argument provided, disabling watchdog\n"); |
| 773 | tout = 0; |
| 774 | } else if ((tout & WD_INTERVAL) == WD_TO_NEVER) { |
| 775 | db_error("Out of range watchdog interval\n"); |
| 776 | return; |
| 777 | } |
| 778 | EVENTHANDLER_INVOKE(watchdog_list, tout, &i); |
| 779 | } |
| 780 | |
| 781 | static void |
| 782 | db_gdb(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4) |
nothing calls this directly
no test coverage detected