The list of changes is too long to fit in the cvs log (since it truncates!).
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index 25883a0a93ccea57f022729aebfed208679ba61e..f387ba0308cbe3c668a96e27374489eaaaab52d1 100644 (file)
@@ -122,6 +122,7 @@ CORE_ADDR read_pc ();
 void breakpoint_clear_ignore_counts ();
 
 \f
+/* ARGSUSED */
 void
 tty_command (file, from_tty)
      char *file;
@@ -218,6 +219,7 @@ continue_command (proc_count_exp, from_tty)
 /* Step until outside of current statement.  */
 static void step_1 ();
 
+/* ARGSUSED */
 static void
 step_command (count_string, from_tty)
      char * count_string;
@@ -228,6 +230,7 @@ step_command (count_string, from_tty)
 
 /* Likewise, but skip over subroutine calls as if single instructions.  */
 
+/* ARGSUSED */
 static void
 next_command (count_string, from_tty)
      char * count_string;
@@ -238,6 +241,7 @@ next_command (count_string, from_tty)
 
 /* Likewise, but step only one instruction.  */
 
+/* ARGSUSED */
 static void
 stepi_command (count_string, from_tty)
      char * count_string;
@@ -246,6 +250,7 @@ stepi_command (count_string, from_tty)
   step_1 (0, 1, count_string);
 }
 
+/* ARGSUSED */
 static void
 nexti_command (count_string, from_tty)
      char * count_string;
@@ -453,6 +458,7 @@ The expression which contained the function call has been discarded.");
    we set.  I'm going to postpone this until after a hopeful rewrite
    of wait_for_inferior and the proceed status code. -- randy */
 
+/* ARGSUSED */
 void
 until_next_command (from_tty)
      int from_tty;
@@ -529,6 +535,8 @@ finish_command (arg, from_tty)
     error ("The \"finish\" command does not take any arguments.");
   if (!target_has_execution)
     error ("The program is not running.");
+  if (selected_frame == NULL)
+    error ("No selected frame.");
 
   frame = get_prev_frame (selected_frame);
   if (frame == 0)
@@ -582,6 +590,7 @@ finish_command (arg, from_tty)
     }
 }
 \f
+/* ARGSUSED */
 static void
 program_info (args, from_tty)
     char *args;
@@ -730,6 +739,7 @@ unset_environment_command (var, from_tty)
 
 const static char path_var_name[] = "PATH";
 
+/* ARGSUSED */
 void
 path_info (args, from_tty)
      char *args;
@@ -750,11 +760,11 @@ path_command (dirname, from_tty)
 
   dont_repeat ();
   exec_path = strsave (get_in_environ (inferior_environ, path_var_name));
-  mod_path (dirname, from_tty, &exec_path);
+  mod_path (dirname, &exec_path);
   set_in_environ (inferior_environ, path_var_name, exec_path);
   free (exec_path);
   if (from_tty)
-    path_info ();
+    path_info ((char *)NULL, from_tty);
 }
 \f
 CORE_ADDR
This page took 0.024502 seconds and 4 git commands to generate.