From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23383 invoked by alias); 4 Feb 2008 19:43:58 -0000 Received: (qmail 23302 invoked by uid 9708); 4 Feb 2008 19:43:54 -0000 Date: Mon, 04 Feb 2008 19:43:00 -0000 Message-ID: <20080204194354.23287.qmail@sourceware.org> From: tthomas@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Show error message on ValueUnavailableException. Fixes bug# 5710. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 3919b14c40e034b714048f6670af116b8a1d4754 X-Git-Newrev: 496a057743a2b939fcc0ddbf10e82876aebdac24 Mailing-List: contact frysk-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-cvs-owner@sourceware.org Reply-To: frysk@sourceware.org X-SW-Source: 2008-q1/txt/msg00151.txt.bz2 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 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 * 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 * 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 + + * ValueUavailableException.java: Renamed to... + * ValueUnavailableException.java: this. + * ValueUnavailableException.java (ValueUnavailableException): New. + * LocationExpression.java (decode): Update. + 2008-01-28 Stan Cox * 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 + + * Variable.java (printValue): Update. + 2008-01-31 Teresa Thomas * 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