diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-05 04:37:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-05 04:37:23 +0000 |
commit | 9a766f85834587f44aa31dee73d9346fa0b40aed (patch) | |
tree | 375adbe0209e88ffe8225032d4fae5bbb534eb89 /gdb/infrun.c | |
parent | a94458334607d7dcbfa5812673c037f2bb5be656 (diff) | |
download | gdb-9a766f85834587f44aa31dee73d9346fa0b40aed.tar.gz |
* cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
(do_sfunc, set_cmd_sfunc): New functions.
* command.h (struct cmd_list_element): Add field func.
* cli/cli-decode.h (struct cmd_list_element): Ditto.
* command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
(help_all, help_cmd_list): Ditto.
(find_cmd, complete_on_cmdlist): Ditto.
* top.c (execute_command): Ditto.
* cli/cli-setshow.c (do_setshow_command): Call func instead of
function.sfunc.
* infcmd.c (notice_args_read): Fix function signature.
* cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
* cli/cli-decode.c (add_set_cmd): Ditto.
* utils.c (initialize_utils): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* infrun.c (_initialize_infrun): Ditto.
* demangle.c (_initialize_demangler): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* cris-tdep.c (_initialize_cris_tdep): Ditto.
* proc-api.c (_initialize_proc_api): Ditto.
* kod.c (_initialize_kod): Ditto.
* valprint.c (_initialize_valprint): Ditto.
* top.c (init_main): Ditto.
* infcmd.c (_initialize_infcmd): Ditto.
* corefile.c (_initialize_core): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* arch-utils.c (initialize_current_architecture): Ditto.
(_initialize_gdbarch_utils): Ditto.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
* wince.c (_initialize_inftarg): Ditto.
* symfile.c (_initialize_symfile): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
* language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 1b0eb7e3e06..c935db86a7b 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4350,7 +4350,6 @@ A fork or vfork creates a new process. follow-fork-mode can be:\n\ For \"parent\" or \"child\", the unfollowed process will run free.\n\ By default, the debugger will follow the parent process.", &setlist); -/* c->function.sfunc = ; */ add_show_from_set (c, &showlist); c = add_set_enum_cmd ("scheduler-locking", class_run, @@ -4364,7 +4363,7 @@ step == scheduler locked during every single-step operation.\n\ Other threads may run while stepping over a function call ('next').", &setlist); - c->function.sfunc = set_schedlock_func; /* traps on target vector */ + 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, |