public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: tthomas@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Show error message on ValueUnavailableException. Fixes bug# 5710. Date: Mon, 04 Feb 2008 19:43:00 -0000 [thread overview] Message-ID: <20080204194354.23287.qmail@sourceware.org> (raw) 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
reply other threads:[~2008-02-04 19:43 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080204194354.23287.qmail@sourceware.org \ --to=tthomas@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).