[SCM] master: Tweak Error values in common utilities.

pmuldoon@sourceware.org pmuldoon@sourceware.org
Fri Dec 7 16:49:00 GMT 2007


The branch, master has been updated
       via  f58119c5647ea4f0fde832a9bb080227926a52db (commit)
      from  01f016ef60b42e011ffa962ef5524c687e0293ef (commit)

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

- Log -----------------------------------------------------------------
commit f58119c5647ea4f0fde832a9bb080227926a52db
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Fri Dec 7 16:49:17 2007 +0000

    Tweak Error values in common utilities.
    
    2007-12-07  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* Util.java (getProcFromCoreFile): Tweak Error text.
    	(getProcFromCoreExePair): Ditto.
    	(getProcFromPid): Ditto.
    	(getProcFromExeFile)L Ditto.

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

Summary of changes:
 frysk-core/frysk/util/ChangeLog |    5 +++++
 frysk-core/frysk/util/Util.java |   18 +++++++++---------
 2 files changed, 14 insertions(+), 9 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/util/ChangeLog b/frysk-core/frysk/util/ChangeLog
index c404a5b..fa30995 100644
--- a/frysk-core/frysk/util/ChangeLog
+++ b/frysk-core/frysk/util/ChangeLog
@@ -1,5 +1,10 @@
 2007-12-07  Phil Muldoon  <pmuldoon@redhat.com>
 
+	* Util.java (getProcFromCoreFile): Tweak Error text.
+	(getProcFromCoreExePair): Ditto.
+	(getProcFromPid): Ditto.
+	(getProcFromExeFile)L Ditto. 
+	
 	* AuxvStringBuilder.java: New.
 
 2007-12-04  Andrew Cagney  <cagney@redhat.com>
diff --git a/frysk-core/frysk/util/Util.java b/frysk-core/frysk/util/Util.java
index 828b859..59be104 100644
--- a/frysk-core/frysk/util/Util.java
+++ b/frysk-core/frysk/util/Util.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2005, Red Hat Inc.
+// Copyright 2005, 2007, Red Hat Inc.
 //
 // FRYSK is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by
@@ -73,10 +73,10 @@ public class Util
     else
       {
         proc = null;
-        throw new RuntimeException("No proc in this corefile");
+        throw new RuntimeException("Cannot find a process in this corefile.");
       }
     if (iterator.hasNext())
-      throw new RuntimeException("Too many procs on this corefile");
+      throw new RuntimeException("Too many processes in this corefile.");
     
     return proc;
   }
@@ -93,10 +93,10 @@ public class Util
     else
       {
         proc = null;
-        throw new RuntimeException("No proc in this corefile");
+        throw new RuntimeException("Cannot find a process in this corefile.");
       }
     if (iterator.hasNext())
-      throw new RuntimeException("Too many procs on this corefile");
+      throw new RuntimeException("Too many processes in this corefile.");
     
     return proc;
   }
@@ -125,8 +125,8 @@ public class Util
 	  
 	  public void procNotFound (ProcId procId, Exception e)
 	  { 
-	      System.err.println("Couldn't find the process: "
-				 + procId.toString());
+	      System.err.println("Could not find the process: "
+				 + procId.intValue());
 	      Manager.eventLoop.requestStop();  
 	  } 
       }
@@ -151,10 +151,10 @@ public class Util
       else
         {
           proc = null;
-          throw new RuntimeException("No proc in this exefile");
+          throw new RuntimeException("Cannot find a process in this executable.");
         }
       if (iterator.hasNext())
-        throw new RuntimeException("Too many procs in this exefile");
+        throw new RuntimeException("Too many processes in this executable.");
       
       return proc;
     }


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



More information about the Frysk-cvs mailing list