diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/infcmd.c | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 142 |
1 files changed, 37 insertions, 105 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 4f2dd8c..bbe1a7c 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -205,8 +205,7 @@ struct environ *inferior_environ; of a command. If it has, it removes it and returns 1. Otherwise it does nothing and returns 0. */ static int -strip_bg_char (args) - char **args; +strip_bg_char (char **args) { char *p = NULL; @@ -233,9 +232,7 @@ strip_bg_char (args) /* ARGSUSED */ void -tty_command (file, from_tty) - char *file; - int from_tty; +tty_command (char *file, int from_tty) { if (file == 0) error_no_arg ("terminal name for running target process"); @@ -244,9 +241,7 @@ tty_command (file, from_tty) } static void -run_command (args, from_tty) - char *args; - int from_tty; +run_command (char *args, int from_tty) { char *exec_file; @@ -346,9 +341,7 @@ Start it from the beginning? ")) static void -run_no_args_command (args, from_tty) - char *args; - int from_tty; +run_no_args_command (char *args, int from_tty) { execute_command ("set args", from_tty); run_command ((char *) NULL, from_tty); @@ -356,9 +349,7 @@ run_no_args_command (args, from_tty) void -continue_command (proc_count_exp, from_tty) - char *proc_count_exp; - int from_tty; +continue_command (char *proc_count_exp, int from_tty) { int async_exec = 0; ERROR_NO_INFERIOR; @@ -416,9 +407,7 @@ continue_command (proc_count_exp, from_tty) /* ARGSUSED */ static void -step_command (count_string, from_tty) - char *count_string; - int from_tty; +step_command (char *count_string, int from_tty) { step_1 (0, 0, count_string); } @@ -427,9 +416,7 @@ step_command (count_string, from_tty) /* ARGSUSED */ static void -next_command (count_string, from_tty) - char *count_string; - int from_tty; +next_command (char *count_string, int from_tty) { step_1 (1, 0, count_string); } @@ -438,18 +425,14 @@ next_command (count_string, from_tty) /* ARGSUSED */ void -stepi_command (count_string, from_tty) - char *count_string; - int from_tty; +stepi_command (char *count_string, int from_tty) { step_1 (0, 1, count_string); } /* ARGSUSED */ void -nexti_command (count_string, from_tty) - char *count_string; - int from_tty; +nexti_command (char *count_string, int from_tty) { step_1 (1, 1, count_string); } @@ -461,10 +444,7 @@ disable_longjmp_breakpoint_cleanup (void *ignore) } static void -step_1 (skip_subroutines, single_inst, count_string) - int skip_subroutines; - int single_inst; - char *count_string; +step_1 (int skip_subroutines, int single_inst, char *count_string) { register int count = 1; struct frame_info *frame; @@ -578,8 +558,7 @@ which has no line number information.\n", name); proceed(), via step_once(). Basically it is like step_once and step_1_continuation are co-recursive. */ static void -step_1_continuation (arg) - struct continuation_arg *arg; +step_1_continuation (struct continuation_arg *arg) { int count; int skip_subroutines; @@ -681,9 +660,7 @@ which has no line number information.\n", name); /* Continue program at specified address. */ static void -jump_command (arg, from_tty) - char *arg; - int from_tty; +jump_command (char *arg, int from_tty) { register CORE_ADDR addr; struct symtabs_and_lines sals; @@ -771,9 +748,7 @@ jump_command (arg, from_tty) /* Go to line or address in current procedure */ static void -go_command (line_no, from_tty) - char *line_no; - int from_tty; +go_command (char *line_no, int from_tty) { if (line_no == (char *) NULL || !*line_no) printf_filtered (GO_USAGE); @@ -788,9 +763,7 @@ go_command (line_no, from_tty) /* Continue program giving it specified signal. */ static void -signal_command (signum_exp, from_tty) - char *signum_exp; - int from_tty; +signal_command (char *signum_exp, int from_tty) { enum target_signal oursig; @@ -837,8 +810,7 @@ signal_command (signum_exp, from_tty) pointed to by arg (which is really a bpstat *). */ static void -breakpoint_auto_delete_contents (arg) - PTR arg; +breakpoint_auto_delete_contents (PTR arg) { breakpoint_auto_delete (*(bpstat *) arg); } @@ -866,9 +838,7 @@ breakpoint_auto_delete_contents (arg) will eventually be popped when we do hit the dummy end breakpoint). */ int -run_stack_dummy (addr, buffer) - CORE_ADDR addr; - char *buffer; +run_stack_dummy (CORE_ADDR addr, char *buffer) { struct cleanup *old_cleanups = make_cleanup (null_cleanup, 0); int saved_async = 0; @@ -956,8 +926,7 @@ run_stack_dummy (addr, buffer) /* ARGSUSED */ static void -until_next_command (from_tty) - int from_tty; +until_next_command (int from_tty) { struct frame_info *frame; CORE_ADDR pc; @@ -1003,9 +972,7 @@ until_next_command (from_tty) } static void -until_command (arg, from_tty) - char *arg; - int from_tty; +until_command (char *arg, int from_tty) { int async_exec = 0; @@ -1106,8 +1073,7 @@ print_return_value (int structure_return, struct type *value_type) detects that the target has stopped. This function is called via the cmd_continaution pointer. */ void -finish_command_continuation (arg) - struct continuation_arg *arg; +finish_command_continuation (struct continuation_arg *arg) { register struct symbol *function; struct breakpoint *breakpoint; @@ -1150,9 +1116,7 @@ finish_command_continuation (arg) the selected frame will return to, then continue. */ static void -finish_command (arg, from_tty) - char *arg; - int from_tty; +finish_command (char *arg, int from_tty) { struct symtab_and_line sal; register struct frame_info *frame; @@ -1277,9 +1241,7 @@ finish_command (arg, from_tty) /* ARGSUSED */ static void -program_info (args, from_tty) - char *args; - int from_tty; +program_info (char *args, int from_tty) { bpstat bs = stop_bpstat; int num = bpstat_num (&bs); @@ -1326,9 +1288,7 @@ program_info (args, from_tty) } static void -environment_info (var, from_tty) - char *var; - int from_tty; +environment_info (char *var, int from_tty) { if (var) { @@ -1359,9 +1319,7 @@ environment_info (var, from_tty) } static void -set_environment_command (arg, from_tty) - char *arg; - int from_tty; +set_environment_command (char *arg, int from_tty) { register char *p, *val, *var; int nullset = 0; @@ -1423,9 +1381,7 @@ set_environment_command (arg, from_tty) } static void -unset_environment_command (var, from_tty) - char *var; - int from_tty; +unset_environment_command (char *var, int from_tty) { if (var == 0) { @@ -1447,9 +1403,7 @@ static const char path_var_name[] = "PATH"; /* ARGSUSED */ static void -path_info (args, from_tty) - char *args; - int from_tty; +path_info (char *args, int from_tty) { puts_filtered ("Executable and object file path: "); puts_filtered (get_in_environ (inferior_environ, path_var_name)); @@ -1459,9 +1413,7 @@ path_info (args, from_tty) /* Add zero or more directories to the front of the execution path. */ static void -path_command (dirname, from_tty) - char *dirname; - int from_tty; +path_command (char *dirname, int from_tty) { char *exec_path; char *env; @@ -1498,9 +1450,7 @@ char *gdb_register_names[] = REGISTER_NAMES; #define DO_REGISTERS_INFO(regnum, fp) do_registers_info(regnum, fp) static void -do_registers_info (regnum, fpregs) - int regnum; - int fpregs; +do_registers_info (int regnum, int fpregs) { register int i; int numregs = ARCH_NUM_REGS; @@ -1605,9 +1555,7 @@ do_registers_info (regnum, fpregs) #endif /* no DO_REGISTERS_INFO. */ void -registers_info (addr_exp, fpregs) - char *addr_exp; - int fpregs; +registers_info (char *addr_exp, int fpregs) { int regnum, numregs; register char *end; @@ -1654,17 +1602,13 @@ registers_info (addr_exp, fpregs) } void -all_registers_info (addr_exp, from_tty) - char *addr_exp; - int from_tty; +all_registers_info (char *addr_exp, int from_tty) { registers_info (addr_exp, 1); } void -nofp_registers_info (addr_exp, from_tty) - char *addr_exp; - int from_tty; +nofp_registers_info (char *addr_exp, int from_tty) { registers_info (addr_exp, 0); } @@ -1687,9 +1631,7 @@ nofp_registers_info (addr_exp, from_tty) and wait for the trace-trap that results from attaching. */ void -attach_command (args, from_tty) - char *args; - int from_tty; +attach_command (char *args, int from_tty) { #ifdef SOLIB_ADD extern int auto_solib_add; @@ -1786,9 +1728,7 @@ attach_command (args, from_tty) */ static void -detach_command (args, from_tty) - char *args; - int from_tty; +detach_command (char *args, int from_tty) { dont_repeat (); /* Not for the faint of heart */ target_detach (args, from_tty); @@ -1803,17 +1743,13 @@ detach_command (args, from_tty) the backgound. */ #ifdef UI_OUT void -interrupt_target_command_wrapper (args, from_tty) - char *args; - int from_tty; +interrupt_target_command_wrapper (char *args, int from_tty) { interrupt_target_command (args, from_tty); } #endif static void -interrupt_target_command (args, from_tty) - char *args; - int from_tty; +interrupt_target_command (char *args, int from_tty) { if (event_loop_p && target_can_async_p ()) { @@ -1824,9 +1760,7 @@ interrupt_target_command (args, from_tty) /* ARGSUSED */ static void -float_info (addr_exp, from_tty) - char *addr_exp; - int from_tty; +float_info (char *addr_exp, int from_tty) { #ifdef FLOAT_INFO FLOAT_INFO; @@ -1837,9 +1771,7 @@ float_info (addr_exp, from_tty) /* ARGSUSED */ static void -unset_command (args, from_tty) - char *args; - int from_tty; +unset_command (char *args, int from_tty) { printf_filtered ("\"unset\" must be followed by the name of "); printf_filtered ("an unset subcommand.\n"); @@ -1847,7 +1779,7 @@ unset_command (args, from_tty) } void -_initialize_infcmd () +_initialize_infcmd (void) { struct cmd_list_element *c; |