public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: mark@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Don't crash when there is a bad outer frame.
Date: Fri, 29 Feb 2008 15:11:00 -0000	[thread overview]
Message-ID: <20080229151139.31713.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2008-02-29 15:11 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=20080229151139.31713.qmail@sourceware.org \
    --to=mark@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: link
Be 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).