public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Don't crash when there is a bad outer frame.
@ 2008-02-29 15:11 mark
  0 siblings, 0 replies; only message in thread
From: mark @ 2008-02-29 15:11 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  8e6ab5488ff4b517582979b2fa0b8384ac6b0e09 (commit)
      from  c3a795648c64b2d5f693a5ffaad6fa0775958ca5 (commit)

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

- Log -----------------------------------------------------------------
commit 8e6ab5488ff4b517582979b2fa0b8384ac6b0e09
Author: Mark Wielaard <mwielaard@redhat.com>
Date:   Fri Feb 29 16:01:55 2008 +0100

    Don't crash when there is a bad outer frame.
    
    frysk-core/frysk/stepping/ChangeLog
    2008-02-29  Mark Wielaard  <mwielaard@redhat.com>
    
        * StepOverTestState.java (handleUpdate): Don't crash when there is
        a bad outer frame.

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

Summary of changes:
 frysk-core/frysk/stepping/ChangeLog              |    5 +++++
 frysk-core/frysk/stepping/StepOverTestState.java |   10 ++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/stepping/ChangeLog b/frysk-core/frysk/stepping/ChangeLog
index 8b0ea9c..8f0e9d2 100644
--- a/frysk-core/frysk/stepping/ChangeLog
+++ b/frysk-core/frysk/stepping/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-29  Mark Wielaard  <mwielaard@redhat.com>
+
+	* StepOverTestState.java (handleUpdate): Don't crash when there is
+	a bad outer frame.
+
 2008-02-28  Andrew Cagney  <cagney@redhat.com>
 
 	* SteppingEngine.java: Use frysk.rsl.
diff --git a/frysk-core/frysk/stepping/StepOverTestState.java b/frysk-core/frysk/stepping/StepOverTestState.java
index 8664bb4..5e7b38e 100644
--- a/frysk-core/frysk/stepping/StepOverTestState.java
+++ b/frysk-core/frysk/stepping/StepOverTestState.java
@@ -86,6 +86,16 @@ public class StepOverTestState extends State {
 		 * it exits - success!
 		 */
 		Frame frame = newFrame.getOuter();
+		if (frame == null)
+		  {
+		    // But urgh... Where did our outer frame go...
+		    // We need to just try to keep stepping till we are
+		    // able to get a solid frame again.
+		    tse.getSteppingEngine().continueForStepping(this.task,
+								true);
+		    return this;
+		  }
+
 		tse.getSteppingEngine().setBreakpoint(this.task,
 			frame.getAddress());
 		return new StepOverState(this.task);


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-29 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-29 15:11 [SCM] master: Don't crash when there is a bad outer frame mark

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).