This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 03/10] maint watchdog.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]