public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: mark@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Work around compiler being too smart and noticing o == null. Date: Fri, 20 Mar 2009 20:21:00 -0000 [thread overview] Message-ID: <20090320202142.27497.qmail@sourceware.org> (raw) The branch, master has been updated via a7b96009e7ad2f2cf0b5c5b1687f8e71de99adac (commit) via 870c86d1ce1e4d5383b3a822bc20b6f6b710b77b (commit) from f13cb684cd4a80a3c1080cbc5b2823ba5e4b65d0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit a7b96009e7ad2f2cf0b5c5b1687f8e71de99adac Author: Mark Wielaard <mjw@redhat.com> Date: Fri Mar 20 21:17:17 2009 +0100 Work around compiler being too smart and noticing o == null. commit 870c86d1ce1e4d5383b3a822bc20b6f6b710b77b Author: Mark Wielaard <mjw@redhat.com> Date: Fri Mar 20 21:14:23 2009 +0100 * TestDebugInfoStackTrace.java (pushPopAssertions): Initialize line. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/debuginfo/ChangeLog | 5 +++++ .../frysk/debuginfo/TestDebugInfoStackTrace.java | 2 +- frysk-core/frysk/pkglibdir/ChangeLog | 5 +++++ .../frysk/pkglibdir/FunitSimpleInterfaceTest.java | 2 ++ 4 files changed, 13 insertions(+), 1 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog index 37736fc..cfcade3 100644 --- a/frysk-core/frysk/debuginfo/ChangeLog +++ b/frysk-core/frysk/debuginfo/ChangeLog @@ -1,3 +1,8 @@ +2008-03-20 Mark Wielaard <mark@klomp.org> + + * TestDebugInfoStackTrace.java (pushPopAssertions): Make sure + line is initialized. + 2008-06-15 Andrew Cagney <cagney@redhat.com> * gen-type-expect-tests.py (open_file): Use assert, not if/println diff --git a/frysk-core/frysk/debuginfo/TestDebugInfoStackTrace.java b/frysk-core/frysk/debuginfo/TestDebugInfoStackTrace.java index 35e2737..9f1d953 100644 --- a/frysk-core/frysk/debuginfo/TestDebugInfoStackTrace.java +++ b/frysk-core/frysk/debuginfo/TestDebugInfoStackTrace.java @@ -500,7 +500,7 @@ public class TestDebugInfoStackTrace public void pushPopAssertions () { DebugInfoFrame sFrame = DebugInfoStackFactory.createDebugInfoStackTrace(myTask); - SourceLocation line = null; + SourceLocation line = sFrame.getLine(); if (this.testState == PUSH || this.testState == POP) { diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog index 0c4b20f..9b88513 100644 --- a/frysk-core/frysk/pkglibdir/ChangeLog +++ b/frysk-core/frysk/pkglibdir/ChangeLog @@ -1,3 +1,8 @@ +2009-03-20 Mark Wielaard <mark@klomp.org> + + * FunitSimpleInterfaceTest.java (main): Work around compiler being + too smart...and noticing o == null. + 2008-06-17 Teresa Thomas <tthomas@redhat.com> * funit-ctypes.c: Write to float_. diff --git a/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java b/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java index dd2504e..3bb9de4 100644 --- a/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java +++ b/frysk-core/frysk/pkglibdir/FunitSimpleInterfaceTest.java @@ -43,6 +43,8 @@ public class FunitSimpleInterfaceTest implements FunitSimpleInterface{ FunitSimpleInterface inter = new FunitSimpleInterfaceTest(); // Crash Object o = null; + if (o == inter) // Work around compiler being too smart... + o = inter; o.toString(); inter.simpleMethod(); } hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2009-03-20 20:21 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=20090320202142.27497.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: 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).