[SCM] master: Fix bz #5369.

rmoseley@sourceware.org rmoseley@sourceware.org
Tue Nov 20 03:50:00 GMT 2007


The branch, master has been updated
       via  254811a3ee56ca12371db0ada5fb03187fbe44cd (commit)
      from  3e6a814efd3e79779a6e472ba385e74513f0ca34 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 254811a3ee56ca12371db0ada5fb03187fbe44cd
Author: Rick Moseley <rmoseley@redhat.com>
Date:   Mon Nov 19 21:50:18 2007 -0600

    Fix bz #5369.
    
    * RunCommand.java: Fix bz# 5369; jazz up help message.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog       |    4 ++++
 frysk-core/frysk/hpd/RunCommand.java |   15 ++++++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 7080fa4..1fe6716 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,5 +1,9 @@
 2007-11-19  Rick Moseley  <rmoseley@redhat.com>
 
+	* RunCommand.java: Fix bz# 5369; jazz up the help message.
+
+2007-11-19  Rick Moseley  <rmoseley@redhat.com>
+
 	* CLI.java: Fix bz #5351.
 	* RunCommand.java: Ditto.
 	* LoadCommand.java: Ditto.
diff --git a/frysk-core/frysk/hpd/RunCommand.java b/frysk-core/frysk/hpd/RunCommand.java
index 3e9bba1..c813b84 100644
--- a/frysk-core/frysk/hpd/RunCommand.java
+++ b/frysk-core/frysk/hpd/RunCommand.java
@@ -53,12 +53,17 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-class RunCommand extends Command {
+class RunCommand extends ParameterizedCommand {
     // Used to synchronize with updateAttached method
     RunCommand() {
 	super("run program and immediately attach",
-	      "run executable arguments*",
-	      "run program and immediately attach");
+	      "run <executable> <arguments*>",
+	      "The run command alllows the debuger to run a(any) program(s)"
+	      + " that has(have) been previously loaded via a load command"
+	      + " if no parameters are given. To run an executable, just"
+	      + " give the run command the path to the executable as a"
+	      + " parameter.  In either case the debugger attaches immediately"
+	      + " to the process.");
     }
 
     private static class Runner implements TaskObserver.Attached {
@@ -119,7 +124,7 @@ class RunCommand extends Command {
 
     }
 
-    public void interpret(CLI cli, Input cmd) {
+    public void interpret(CLI cli, Input cmd, Object options) {
 	/* If the run command is given no args, check to see if 
 	   any procs were loaded with the load command or loaded
 	   when fhpd was started */
@@ -174,7 +179,7 @@ class RunCommand extends Command {
 	runner.launchedTask.requestUnblock(runner);
     }
     
-    int complete(CLI cli, Input input, int cursor, List completions) {
+    int completer(CLI cli, Input input, int cursor, List completions) {
 	return CompletionFactory.completeFileName(cli, input, cursor,
 						  completions);
     }


hooks/post-receive
--
frysk system monitor/debugger



More information about the Frysk-cvs mailing list