This is the mail archive of the frysk-cvs@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] master: Show error message on ValueUnavailableException. Fixes bug# 5710.


The branch, master has been updated
       via  496a057743a2b939fcc0ddbf10e82876aebdac24 (commit)
      from  3919b14c40e034b714048f6670af116b8a1d4754 (commit)

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

- Log -----------------------------------------------------------------
commit 496a057743a2b939fcc0ddbf10e82876aebdac24
Author: Teresa <tthomas@redhat.com>
Date:   Mon Feb 4 14:40:39 2008 -0500

    Show error message on ValueUnavailableException. Fixes bug# 5710.
    
    frysk-core/frysk/debuginfo/ChangeLog
    2008-02-04  Teresa Thomas  <tthomas@redhat.com>
    
    	* ValueUavailableException.java: Renamed to...
    	* ValueUnavailableException.java: this.
    	* ValueUnavailableException.java (ValueUnavailableException): New.
    	* LocationExpression.java (decode): Update.
    
    frysk-core/frysk/value/ChangeLog
    2008-02-04  Teresa Thomas  <tthomas@redhat.com>
    
    	* Variable.java (printValue): Update.

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

Summary of changes:
 frysk-core/frysk/debuginfo/ChangeLog               |    7 +++++++
 frysk-core/frysk/debuginfo/LocationExpression.java |    4 ++--
 ...ception.java => ValueUnavailableException.java} |    6 +++++-
 frysk-core/frysk/value/ChangeLog                   |    4 ++++
 frysk-core/frysk/value/Variable.java               |    4 ++--
 5 files changed, 20 insertions(+), 5 deletions(-)
 rename frysk-core/frysk/debuginfo/{ValueUavailableException.java => ValueUnavailableException.java} (93%)

First 500 lines of diff:
diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog
index 1356c25..83a58f5 100644
--- a/frysk-core/frysk/debuginfo/ChangeLog
+++ b/frysk-core/frysk/debuginfo/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-04  Teresa Thomas  <tthomas@redhat.com>
+
+	* ValueUavailableException.java: Renamed to...
+	* ValueUnavailableException.java: this.
+	* ValueUnavailableException.java (ValueUnavailableException): New.
+	* LocationExpression.java (decode): Update.
+	
 2008-01-28  Stan Cox  <scox@redhat.com>
 
 	* TypeEntry.java (getType): DwTag.TYPEDEF_: Handle "typedef void"
diff --git a/frysk-core/frysk/debuginfo/LocationExpression.java b/frysk-core/frysk/debuginfo/LocationExpression.java
index 47ce119..7e58e0c 100644
--- a/frysk-core/frysk/debuginfo/LocationExpression.java
+++ b/frysk-core/frysk/debuginfo/LocationExpression.java
@@ -91,7 +91,7 @@ public class LocationExpression {
 	    if (die.getAttrBoolean(DwAt.LOCATION)) 
 		throw new VariableOptimizedOutException();  
 	    else 
-		throw new ValueUavailableException();
+		throw new ValueUnavailableException(die.getName());
 	
 	for(int i = 0; i < nops; i++) {
 
@@ -428,7 +428,7 @@ public class LocationExpression {
 		break;
 
 	    default:
-		throw new ValueUavailableException();
+		throw new ValueUnavailableException(die.getName());
 	    }
 	}
 
diff --git a/frysk-core/frysk/debuginfo/ValueUavailableException.java b/frysk-core/frysk/debuginfo/ValueUnavailableException.java
similarity index 93%
rename from frysk-core/frysk/debuginfo/ValueUavailableException.java
rename to frysk-core/frysk/debuginfo/ValueUnavailableException.java
index 3b73bee..a0fe8b2 100644
--- a/frysk-core/frysk/debuginfo/ValueUavailableException.java
+++ b/frysk-core/frysk/debuginfo/ValueUnavailableException.java
@@ -39,7 +39,11 @@
 
 package frysk.debuginfo;
 
-public class ValueUavailableException extends RuntimeException {
+public class ValueUnavailableException extends RuntimeException {
+    
+    public ValueUnavailableException(String valName) {
+	super ("Value Unavailable - " + valName);
+    }
 
     /**
      * 
diff --git a/frysk-core/frysk/value/ChangeLog b/frysk-core/frysk/value/ChangeLog
index 7f0ff9c..6ad008d 100644
--- a/frysk-core/frysk/value/ChangeLog
+++ b/frysk-core/frysk/value/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-04  Teresa Thomas  <tthomas@redhat.com>
+
+	* Variable.java (printValue): Update.
+
 2008-01-31  Teresa Thomas  <tthomas@redhat.com>
 
 	* BigFloatingPoint.java (divide): Use BigDecimal
diff --git a/frysk-core/frysk/value/Variable.java b/frysk-core/frysk/value/Variable.java
index 0fc3eb0..8c05d0e 100644
--- a/frysk-core/frysk/value/Variable.java
+++ b/frysk-core/frysk/value/Variable.java
@@ -48,7 +48,7 @@ import frysk.debuginfo.DebugInfoFrame;
 import frysk.debuginfo.LocationExpression;
 import frysk.debuginfo.PieceLocation;
 import frysk.debuginfo.TypeEntry;
-import frysk.debuginfo.ValueUavailableException;
+import frysk.debuginfo.ValueUnavailableException;
 import frysk.debuginfo.VariableOptimizedOutException;
 import frysk.isa.ISA;
 import frysk.scopes.SourceLocation;
@@ -126,7 +126,7 @@ public class Variable extends ObjectDeclaration{
 	    Value value = getValue(frame);
 	    value.toPrint(printWriter, frame.getTask().getMemory(),
 			  Format.NATURAL, 0);
-	} catch (ValueUavailableException e) {
+	} catch (ValueUnavailableException e) {
 	    printWriter.print("< value unavailable at pc=0x"+ Long.toHexString(frame.getAdjustedAddress())+">");
 	} catch (VariableOptimizedOutException e) {
 	    printWriter.print("< optimized out >");


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]