[PATCH 03/10] maint watchdog.

Tom Tromey tromey@redhat.com
Tue Jul 31 19:35:00 GMT 2012


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> 	* defs.h: Update declaration of 'watchdog'.
Yao> 	* maint.c (watchdog): Add 'unsigned'.
Yao> 	(_initialize_maint_cmds): Call add_setshow_zuinteger_cmd instead
Yao> 	of add_setshow_zinteger_cmd.

I'm not so sure about this one.
It is class_maintenance, but it is not in the "maint" command list.

Yao> +extern unsigned int watchdog;
 
There is this code in remote.c:

  int timeout;
...
  if (forever)
    timeout = watchdog > 0 ? watchdog : -1;

What if the user-supplied value won't fit into an int?

Tom



More information about the Gdb-patches mailing list