add_show_from_set (c, &showlist);
deprecated_add_show_from_set (c, &showlist);
_initialize_infrun (void){  int i;  int numsigs;  struct cmd_list_element *c;  DEPRECATED_REGISTER_GDBARCH_SWAP (stop_registers);  deprecated_register_gdbarch_swap (NULL, 0, build_infrun);  add_info ("signals", signals_info,	    "What debugger does when program gets various signals.\n\Specify a signal as argument to print info on that signal only.");  add_info_alias ("handle", "signals", 0);  add_com ("handle", class_run, handle_command,	   concat ("Specify how to handle a signal.\n\Args are signals and actions to apply to those signals.\n\Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\from 1-15 are allowed for compatibility with old versions of GDB.\n\Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\The special arg \"all\" is recognized to mean all signals except those\n\used by the debugger, typically SIGTRAP and SIGINT.\n", "Recognized actions include \"stop\", \"nostop\", \"print\", \"noprint\",\n\\"pass\", \"nopass\", \"ignore\", or \"noignore\".\n\Stop means reenter debugger if this signal happens (implies print).\n\Print means print a message if this signal happens.\n\Pass means let program see this signal; otherwise program doesn't know.\n\Ignore is a synonym for nopass and noignore is a synonym for pass.\n\Pass and Stop may be combined.", NULL));  if (xdb_commands)    {      add_com ("lz", class_info, signals_info,	       "What debugger does when program gets various signals.\n\Specify a signal as argument to print info on that signal only.");      add_com ("z", class_run, xdb_handle_command,	       concat ("Specify how to handle a signal.\n\Args are signals and actions to apply to those signals.\n\Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\from 1-15 are allowed for compatibility with old versions of GDB.\n\Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\The special arg \"all\" is recognized to mean all signals except those\n\used by the debugger, typically SIGTRAP and SIGINT.\n", "Recognized actions include \"s\" (toggles between stop and nostop), \n\\"r\" (toggles between print and noprint), \"i\" (toggles between pass and \nopass), \"Q\" (noprint)\n\Stop means reenter debugger if this signal happens (implies print).\n\Print means print a message if this signal happens.\n\Pass means let program see this signal; otherwise program doesn't know.\n\Ignore is a synonym for nopass and noignore is a synonym for pass.\n\Pass and Stop may be combined.", NULL));    }  if (!dbx_commands)    stop_command =      add_cmd ("stop", class_obscure, not_just_help_class_command, "There is no `stop' command, but you can set a hook on `stop'.\n\This allows you to set a list of commands to be run each time execution\n\of the program stops.", &cmdlist);  numsigs = (int) TARGET_SIGNAL_LAST;  signal_stop = (unsigned char *) xmalloc (sizeof (signal_stop[0]) * numsigs);  signal_print = (unsigned char *)    xmalloc (sizeof (signal_print[0]) * numsigs);  signal_program = (unsigned char *)    xmalloc (sizeof (signal_program[0]) * numsigs);  for (i = 0; i < numsigs; i++)    {      signal_stop[i] = 1;      signal_print[i] = 1;      signal_program[i] = 1;    }  /* Signals caused by debugger's own actions     should not be given to the program afterwards.  */  signal_program[TARGET_SIGNAL_TRAP] = 0;  signal_program[TARGET_SIGNAL_INT] = 0;  /* Signals that are not errors should not normally enter the debugger.  */  signal_stop[TARGET_SIGNAL_ALRM] = 0;  signal_print[TARGET_SIGNAL_ALRM] = 0;  signal_stop[TARGET_SIGNAL_VTALRM] = 0;  signal_print[TARGET_SIGNAL_VTALRM] = 0;  signal_stop[TARGET_SIGNAL_PROF] = 0;  signal_print[TARGET_SIGNAL_PROF] = 0;  signal_stop[TARGET_SIGNAL_CHLD] = 0;  signal_print[TARGET_SIGNAL_CHLD] = 0;  signal_stop[TARGET_SIGNAL_IO] = 0;  signal_print[TARGET_SIGNAL_IO] = 0;  signal_stop[TARGET_SIGNAL_POLL] = 0;  signal_print[TARGET_SIGNAL_POLL] = 0;  signal_stop[TARGET_SIGNAL_URG] = 0;  signal_print[TARGET_SIGNAL_URG] = 0;  signal_stop[TARGET_SIGNAL_WINCH] = 0;  signal_print[TARGET_SIGNAL_WINCH] = 0;  /* These signals are used internally by user-level thread     implementations.  (See signal(5) on Solaris.)  Like the above     signals, a healthy program receives and handles them as part of     its normal operation.  */  signal_stop[TARGET_SIGNAL_LWP] = 0;  signal_print[TARGET_SIGNAL_LWP] = 0;  signal_stop[TARGET_SIGNAL_WAITING] = 0;  signal_print[TARGET_SIGNAL_WAITING] = 0;  signal_stop[TARGET_SIGNAL_CANCEL] = 0;  signal_print[TARGET_SIGNAL_CANCEL] = 0;#ifdef SOLIB_ADD  add_show_from_set    (add_set_cmd ("stop-on-solib-events", class_support, var_zinteger,		  (char *) &stop_on_solib_events,		  "Set stopping for shared library events.\n\If nonzero, gdb will give control to the user when the dynamic linker\n\notifies gdb of shared library events.  The most common event of interest\n\to the user would be loading/unloading of a new library.\n", &setlist), &showlist);#endif  c = add_set_enum_cmd ("follow-fork-mode",			class_run,			follow_fork_mode_kind_names, &follow_fork_mode_string,			"Set debugger response to a program call of fork \or vfork.\n\A fork or vfork creates a new process.  follow-fork-mode can be:\n\  parent  - the original process is debugged after a fork\n\  child   - the new process is debugged after a fork\n\The unfollowed process will continue to run.\n\By default, the debugger will follow the parent process.", &setlist);  add_show_from_set (c, &showlist);  c = add_set_enum_cmd ("scheduler-locking", class_run, scheduler_enums,	/* array of string names */			&scheduler_mode,	/* current mode  */			"Set mode for locking scheduler during execution.\n\off  == no locking (threads may preempt at any time)\n\on   == full locking (no thread except the current thread may run)\n\step == scheduler locked during every single-step operation.\n\	In this mode, no other thread may run during a step command.\n\	Other threads may run while stepping over a function call ('next').", &setlist);  set_cmd_sfunc (c, set_schedlock_func);	/* traps on target vector */  add_show_from_set (c, &showlist);  c = add_set_cmd ("step-mode", class_run,		   var_boolean, (char *) &step_stop_if_no_debug,		   "Set mode of the step operation. When set, doing a step over a\n\function without debug line information will stop at the first\n\instruction of that function. Otherwise, the function is skipped and\n\the step command stops at a different source line.", &setlist);  add_show_from_set (c, &showlist);  /* ptid initializations */  null_ptid = ptid_build (0, 0, 0);  minus_one_ptid = ptid_build (-1, 0, 0);  inferior_ptid = null_ptid;  target_last_wait_ptid = minus_one_ptid;}