public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: pmuldoon@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: 2008-03-17 Phil Muldoon <pmuldoon@redhat.com> Date: Mon, 17 Mar 2008 17:33:00 -0000 [thread overview] Message-ID: <20080317173318.6191.qmail@sourceware.org> (raw) The branch, master has been updated via d8919fbb113772ebc987e74061e838879556d9c4 (commit) from ec2bf1299f4d201f2452558aafd0880c680c729c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit d8919fbb113772ebc987e74061e838879556d9c4 Author: Phil Muldoon <pmuldoon@redhat.com> Date: Mon Mar 17 17:33:00 2008 +0000 2008-03-17 Phil Muldoon <pmuldoon@redhat.com> * TestCorefileByteBuffer.java (testCorefileByteBufferSlice): Use getBytes(). Test for null returns. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/proc/dead/ChangeLog | 5 ++++- .../frysk/proc/dead/TestCorefileByteBuffer.java | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog index 9229a67..4f8ff90 100644 --- a/frysk-core/frysk/proc/dead/ChangeLog +++ b/frysk-core/frysk/proc/dead/ChangeLog @@ -1,5 +1,8 @@ -2008-03-17 Andrew Cagney <cagney@redhat.com> +2008-03-17 Phil Muldoon <pmuldoon@redhat.com> + * TestCorefileByteBuffer.java (testCorefileByteBufferSlice): Use + getBytes(). Test for null returns. +2008-03-17 Andrew Cagney <cagney@redhat.com> * DeadHost.java: Update; using TaskAttachedObserverXXX; * TestLinuxCore.java: Update. * DeadTask.java: Ditto. diff --git a/frysk-core/frysk/proc/dead/TestCorefileByteBuffer.java b/frysk-core/frysk/proc/dead/TestCorefileByteBuffer.java index 1c2d3d2..aafe4bd 100644 --- a/frysk-core/frysk/proc/dead/TestCorefileByteBuffer.java +++ b/frysk-core/frysk/proc/dead/TestCorefileByteBuffer.java @@ -57,7 +57,7 @@ public class TestCorefileByteBuffer public void testCorefileByteBufferSlice() throws ElfException { - ElfData rawData; + ElfData rawData = null; final long sliceBottom = 0x411bb000L; final long sliceTop = 0x411bbfffL; final long elfOffset = 0x28000; @@ -74,16 +74,18 @@ public class TestCorefileByteBuffer // Independently get the elf core data as a raw image Elf segment = new Elf(Config.getPkgDataFile("test-core-x86"), ElfCommand.ELF_C_READ); + assertNotNull("Get Elf file for segment inspection", segment); rawData = segment.getRawData(elfOffset,elfLen); + assertNotNull("RawData is not null", rawData); + byte[] byteSet = rawData.getBytes(); // coreSlice.position(sliceBottom); for(int i=0; i<elfLen; i++) assertEquals("Offset at 0x"+Long.toHexString(elfOffset+i) +" does not match rawData at location " + Long.toHexString(i), - rawData.internal_buffer[i], + byteSet[i], coreSlice.get()); - segment.close(); } hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-03-17 17:33 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=20080317173318.6191.qmail@sourceware.org \ --to=pmuldoon@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).