public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Don't include the trailing NUL in a slurped file buffer.
@ 2008-06-04 22:21 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-06-04 22:21 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  72412ec819241b1c1d619ef2ab14b2ec4bd5ae1a (commit)
      from  f26063a531c6009e850bbaf369e04580711f583b (commit)

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

- Log -----------------------------------------------------------------
commit 72412ec819241b1c1d619ef2ab14b2ec4bd5ae1a
Author: Andrew Cagney <cagney@redhat.com>
Date:   Wed Jun 4 18:19:34 2008 -0400

    Don't include the trailing NUL in a slurped file buffer.
    
    frysk-sys/frysk/config/ChangeLog
    2008-06-04  Andrew Cagney  <cagney@redhat.com>
    
    	* Host.java (bigEndian()): Declare.
    	* jni/Host.cxx-in: Implement.
    	* cni/Host.cxx-in: Implement.
    
    frysk-sys/frysk/sys/proc/ChangeLog
    2008-06-04  Andrew Cagney  <cagney@redhat.com>
    
    	* TestAuxv.java (testNative()): New.
    
    frysk-sys/jnixx/ChangeLog
    2008-06-04  Andrew Cagney  <cagney@redhat.com>
    
    	* elements.cxx (slurp): Don't count the terminating NUL in the
    	buffer's length.

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

Summary of changes:
 frysk-sys/frysk/config/ChangeLog       |    6 +
 frysk-sys/frysk/config/Host.java       |    5 +
 frysk-sys/frysk/config/cni/Host.cxx-in |   11 +-
 frysk-sys/frysk/config/jni/Host.cxx-in |    7 +
 frysk-sys/frysk/sys/proc/ChangeLog     |    4 +
 frysk-sys/frysk/sys/proc/TestAuxv.java |  513 ++++++++++++++++----------------
 frysk-sys/jnixx/ChangeLog              |    5 +
 frysk-sys/jnixx/elements.cxx           |    6 +-
 8 files changed, 296 insertions(+), 261 deletions(-)

First 500 lines of diff:
diff --git a/frysk-sys/frysk/config/ChangeLog b/frysk-sys/frysk/config/ChangeLog
index ecb7cda..38a20fe 100644
--- a/frysk-sys/frysk/config/ChangeLog
+++ b/frysk-sys/frysk/config/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-04  Andrew Cagney  <cagney@redhat.com>
+
+	* Host.java (bigEndian()): Declare.
+	* jni/Host.cxx-in: Implement.
+	* cni/Host.cxx-in: Implement.
+
 2008-06-02  Andrew Cagney  <cagney@redhat.com>
 
 	* jni/Runtime.cxx (Runtime::runtime): Return JNI, not CNI.
diff --git a/frysk-sys/frysk/config/Host.java b/frysk-sys/frysk/config/Host.java
index 6df656b..bc6d9b7 100644
--- a/frysk-sys/frysk/config/Host.java
+++ b/frysk-sys/frysk/config/Host.java
@@ -55,6 +55,11 @@ public class Host {
     public static native int wordSize();
 
     /**
+     * The host is big endian?
+     */
+    public static native boolean bigEndian();
+
+    /**
      * Return the <tt>autoconf</tt> <tt>target_cpu</tt> specified when
      * building frysk.
      *
diff --git a/frysk-sys/frysk/config/cni/Host.cxx-in b/frysk-sys/frysk/config/cni/Host.cxx-in
index 98c195f..af6ad2b 100644
--- a/frysk-sys/frysk/config/cni/Host.cxx-in
+++ b/frysk-sys/frysk/config/cni/Host.cxx-in
@@ -43,13 +43,20 @@
 
 #include "frysk/config/Host.h"
 
+using namespace frysk::config;
 
 jint
-frysk::config::Host::wordSize() {
+Host::wordSize() {
   return sizeof(long) * 8;
 }
 
+jboolean
+Host::bigEndian() {
+  int i = 1;
+  return *(char*)&i == 0;
+}
+
 jstring
-frysk::config::Host::cpuXXX() {
+Host::cpuXXX() {
   return JvNewStringUTF("@host_cpu@");
 }
diff --git a/frysk-sys/frysk/config/jni/Host.cxx-in b/frysk-sys/frysk/config/jni/Host.cxx-in
index c5ab352..2215ca7 100644
--- a/frysk-sys/frysk/config/jni/Host.cxx-in
+++ b/frysk-sys/frysk/config/jni/Host.cxx-in
@@ -42,12 +42,19 @@
 #include "jni.hxx"
 
 using namespace java::lang;
+using namespace frysk::config;
 
 jint 
 frysk::config::Host::wordSize(::jnixx::env env) {
   return sizeof(long) * 8;
 }
 
+bool
+Host::bigEndian(::jnixx::env env) {
+  int i = 1;
+  return *(char*)&i == 0;
+}
+
 String
 frysk::config::Host::cpuXXX(::jnixx::env env) {
   return String::NewStringUTF(env, "@host_cpu@");
diff --git a/frysk-sys/frysk/sys/proc/ChangeLog b/frysk-sys/frysk/sys/proc/ChangeLog
index 9873ddd..9c7dcc0 100644
--- a/frysk-sys/frysk/sys/proc/ChangeLog
+++ b/frysk-sys/frysk/sys/proc/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-04  Andrew Cagney  <cagney@redhat.com>
+
+	* TestAuxv.java (testNative()): New.
+
 2008-05-25  Andrew Cagney  <cagney@redhat.com>
 
 	* jni/CmdLineBuilder.cxx: Use jbyteArrayElements.
diff --git a/frysk-sys/frysk/sys/proc/TestAuxv.java b/frysk-sys/frysk/sys/proc/TestAuxv.java
index d44e83b..7645202 100644
--- a/frysk-sys/frysk/sys/proc/TestAuxv.java
+++ b/frysk-sys/frysk/sys/proc/TestAuxv.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2005, Red Hat Inc.
+// Copyright 2005, 2008, Red Hat Inc.
 //
 // FRYSK is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by
@@ -40,6 +40,8 @@
 package frysk.sys.proc;
 
 import frysk.junit.TestCase;
+import frysk.config.Host;
+import frysk.sys.Pid;
 
 /**
  * Test the AuxvBuilder against a predefined set of <tt>auxv</tt>
@@ -48,13 +50,9 @@ import frysk.junit.TestCase;
  * The test buffers are obtained by running, and than massaging, the
  * output from <tt>prog/print/auxv</tt>
  */
-public class TestAuxv
-    extends TestCase
-{
-    static class Auxiliary
-    {
-	Auxiliary (int type, long val)
-	{
+public class TestAuxv extends TestCase {
+    static class Auxiliary {
+	Auxiliary(int type, long val) {
 	    this.type = type;
 	    this.val = val;
 	}
@@ -65,186 +63,175 @@ public class TestAuxv
     /**
      * Verify that the unpacked auxv matches expected.
      */
-    private void check (int wordSize, boolean bigEndian,
-			Auxiliary[] vec, byte[] auxv)
-    {
-	class Builder
-	    extends AuxvBuilder
-	{
+    private void check(int wordSize, boolean bigEndian,
+		       Auxiliary[] vec, byte[] auxv) {
+	class Builder extends AuxvBuilder {
 	    int wordSize;
 	    boolean bigEndian;
 	    Auxiliary[] vec;
-	    Builder (int wordSize, boolean bigEndian,
-		     Auxiliary[] vec)
-	    {
+	    Builder(int wordSize, boolean bigEndian, Auxiliary[] vec) {
 		this.wordSize = wordSize;
 		this.vec = vec;
 		this.bigEndian = bigEndian;
 	    }
-	    public void buildBuffer (byte[] auxv)
-	    {
+	    public void buildBuffer(byte[] auxv) {
 	    }
-	    public void buildDimensions (int wordSize, boolean bigEndian,
-					 int length)
-	    {
-		assertEquals ("word size", this.wordSize, wordSize);
-		assertEquals ("big endian", this.bigEndian, bigEndian);
-		assertEquals ("number elements", this.vec.length, length);
+	    public void buildDimensions(int wordSize, boolean bigEndian,
+					int length) {
+		assertEquals("word size", this.wordSize, wordSize);
+		assertEquals("big endian", this.bigEndian, bigEndian);
+		assertEquals("number elements", this.vec.length, length);
 	    }
 	    int index = 0;
-	    public void buildAuxiliary (int index, int type, long val)
-	    {
-		assertEquals ("type", type, this.vec[index].type);
-		assertEquals ("val", val, this.vec[index].val);
-		assertEquals ("index", this.index, index);
+	    public void buildAuxiliary(int index, int type, long val) {
+		assertEquals("type", type, this.vec[index].type);
+		assertEquals("val", val, this.vec[index].val);
+		assertEquals("index", this.index, index);
 		this.index++;
 	    }
 	}
-	Builder builder = new Builder (wordSize, bigEndian, vec);
-	builder.construct (auxv);
-	assertEquals (builder.index, vec.length);
+	Builder builder = new Builder(wordSize, bigEndian, vec);
+	builder.construct(auxv);
+	assertEquals(builder.index, vec.length);
     }
 
     /**
      * Check that an AUXV taken from an IA-32 (Intel(R) Pentium(R) M
      * processor 1.10GHz) machine can be parsed.
      */
-    public void testIA32 ()
-    {
-	check (4, false,
-	       new Auxiliary[] {
-		   new Auxiliary (32, 7947264L),
-		   new Auxiliary (33, 7946240L),
-		   new Auxiliary (16, 2951345087L),
-		   new Auxiliary (6, 4096L),
-		   new Auxiliary (17, 100L),
-		   new Auxiliary (3, 134512692L),
-		   new Auxiliary (4, 32L),
-		   new Auxiliary (5, 7L),
-		   new Auxiliary (7, 0L),
-		   new Auxiliary (8, 0L),
-		   new Auxiliary (9, 134513504L),
-		   new Auxiliary (11, 500L),
-		   new Auxiliary (12, 500L),
-		   new Auxiliary (13, 500L),
-		   new Auxiliary (14, 500L),
-		   new Auxiliary (23, 0L),
-		   new Auxiliary (15, 3216152987L),
-		   new Auxiliary (0, 0)
-	       },
-	       new byte[] {
-		   32, 0, 0, 0, 0, 68, 121, 0,
-		   33, 0, 0, 0, 0, 64, 121, 0,
-		   16, 0, 0, 0, -65, -13, -23, -81,
-		   6, 0, 0, 0, 0, 16, 0, 0,
-		   17, 0, 0, 0, 100, 0, 0, 0,
-		   3, 0, 0, 0, 52, -128, 4, 8,
-		   4, 0, 0, 0, 32, 0, 0, 0,
-		   5, 0, 0, 0, 7, 0, 0, 0,
-		   7, 0, 0, 0, 0, 0, 0, 0,
-		   8, 0, 0, 0, 0, 0, 0, 0,
-		   9, 0, 0, 0, 96, -125, 4, 8,
-		   11, 0, 0, 0, -12, 1, 0, 0,
-		   12, 0, 0, 0, -12, 1, 0, 0,
-		   13, 0, 0, 0, -12, 1, 0, 0,
-		   14, 0, 0, 0, -12, 1, 0, 0,
-		   23, 0, 0, 0, 0, 0, 0, 0,
-		   15, 0, 0, 0, -101, -103, -78, -65,
-		   0, 0, 0, 0, 0, 0, 0, 0
-	       });
+    public void testIA32() {
+	check(4, false,
+	      new Auxiliary[] {
+		  new Auxiliary(32, 7947264L),
+		  new Auxiliary(33, 7946240L),
+		  new Auxiliary(16, 2951345087L),
+		  new Auxiliary(6, 4096L),
+		  new Auxiliary(17, 100L),
+		  new Auxiliary(3, 134512692L),
+		  new Auxiliary(4, 32L),
+		  new Auxiliary(5, 7L),
+		  new Auxiliary(7, 0L),
+		  new Auxiliary(8, 0L),
+		  new Auxiliary(9, 134513504L),
+		  new Auxiliary(11, 500L),
+		  new Auxiliary(12, 500L),
+		  new Auxiliary(13, 500L),
+		  new Auxiliary(14, 500L),
+		  new Auxiliary(23, 0L),
+		  new Auxiliary(15, 3216152987L),
+		  new Auxiliary(0, 0)
+	      },
+	      new byte[] {
+		  32, 0, 0, 0, 0, 68, 121, 0,
+		  33, 0, 0, 0, 0, 64, 121, 0,
+		  16, 0, 0, 0, -65, -13, -23, -81,
+		  6, 0, 0, 0, 0, 16, 0, 0,
+		  17, 0, 0, 0, 100, 0, 0, 0,
+		  3, 0, 0, 0, 52, -128, 4, 8,
+		  4, 0, 0, 0, 32, 0, 0, 0,
+		  5, 0, 0, 0, 7, 0, 0, 0,
+		  7, 0, 0, 0, 0, 0, 0, 0,
+		  8, 0, 0, 0, 0, 0, 0, 0,
+		  9, 0, 0, 0, 96, -125, 4, 8,
+		  11, 0, 0, 0, -12, 1, 0, 0,
+		  12, 0, 0, 0, -12, 1, 0, 0,
+		  13, 0, 0, 0, -12, 1, 0, 0,
+		  14, 0, 0, 0, -12, 1, 0, 0,
+		  23, 0, 0, 0, 0, 0, 0, 0,
+		  15, 0, 0, 0, -101, -103, -78, -65,
+		  0, 0, 0, 0, 0, 0, 0, 0
+	      });
     }
 
     /**
      * Check that an AUXV taken from an AMD64 (AMD Opteron(tm)
      * Processor 846) can be parsed.
      */
-    public void testAMD64 ()
-    {
-	check (8, false,
-	       new Auxiliary[] {
-		   new Auxiliary (16, 126614527L),
-		   new Auxiliary (6, 4096L),
-		   new Auxiliary (17, 100L),
-		   new Auxiliary (3, 4194368L),
-		   new Auxiliary (4, 56L),
-		   new Auxiliary (5, 8L),
-		   new Auxiliary (7, 0L),
-		   new Auxiliary (8, 0L),
-		   new Auxiliary (9, 4195536L),
-		   new Auxiliary (11, 2548L),
-		   new Auxiliary (12, 2548L),
-		   new Auxiliary (13, 2553L),
-		   new Auxiliary (14, 2553L),
-		   new Auxiliary (23, 0L),
-		   new Auxiliary (15, 140737481582809L),
-		   new Auxiliary (0, 0)
-	       },
-	       new byte[] {
-		   16, 0, 0, 0, 0, 0, 0, 0, -1, -5, -117, 7, 0, 0, 0, 0,
-		   6, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0,
-		   17, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0,
-		   3, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 0, 0, 0, 0, 0,
-		   4, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0,
-		   5, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
-		   7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   9, 0, 0, 0, 0, 0, 0, 0, -48, 4, 64, 0, 0, 0, 0, 0,
-		   11, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
-		   12, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
-		   13, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
-		   14, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
-		   23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   15, 0, 0, 0, 0, 0, 0, 0, -39, -88, -104, -1, -1, 127, 0, 0,
-		   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-	       });
+    public void testAMD64() {
+	check(8, false,
+	      new Auxiliary[] {
+		  new Auxiliary(16, 126614527L),
+		  new Auxiliary(6, 4096L),
+		  new Auxiliary(17, 100L),
+		  new Auxiliary(3, 4194368L),
+		  new Auxiliary(4, 56L),
+		  new Auxiliary(5, 8L),
+		  new Auxiliary(7, 0L),
+		  new Auxiliary(8, 0L),
+		  new Auxiliary(9, 4195536L),
+		  new Auxiliary(11, 2548L),
+		  new Auxiliary(12, 2548L),
+		  new Auxiliary(13, 2553L),
+		  new Auxiliary(14, 2553L),
+		  new Auxiliary(23, 0L),
+		  new Auxiliary(15, 140737481582809L),
+		  new Auxiliary(0, 0)
+	      },
+	      new byte[] {
+		  16, 0, 0, 0, 0, 0, 0, 0, -1, -5, -117, 7, 0, 0, 0, 0,
+		  6, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0,
+		  17, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0,
+		  3, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 0, 0, 0, 0, 0,
+		  4, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0,
+		  5, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
+		  7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  9, 0, 0, 0, 0, 0, 0, 0, -48, 4, 64, 0, 0, 0, 0, 0,
+		  11, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
+		  12, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
+		  13, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
+		  14, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
+		  23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  15, 0, 0, 0, 0, 0, 0, 0, -39, -88, -104, -1, -1, 127, 0, 0,
+		  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+	      });
     }
 
     /**
      * Check that the AUXV from an IA-64 (Itanium 2) can be parsed.
      */
-    public void testIA64 ()
-    {
-	check (8, false,
-	       new Auxiliary[] {
-		   new Auxiliary (32, -6917529027641014688L
-				  /*11529215046068536928*/),
-		   new Auxiliary (33, -6917529027641081856L
-				  /*11529215046068469760L*/),
-		   new Auxiliary (16, 0L),
-		   new Auxiliary (6, 16384L),
-		   new Auxiliary (17, 1024L),
-		   new Auxiliary (3, 4611686018427387968L),
-		   new Auxiliary (4, 56L),
-		   new Auxiliary (5, 8L),
-		   new Auxiliary (7, 2305843009213693952L),
-		   new Auxiliary (8, 0L),
-		   new Auxiliary (9, 4611686018427389344L),
-		   new Auxiliary (11, 2548L),
-		   new Auxiliary (12, 2548L),
-		   new Auxiliary (13, 2553L),
-		   new Auxiliary (14, 2553L),
-		   new Auxiliary (23, 0L),
-		   new Auxiliary (0, 0L)
-	       },
-	       new byte[] {
-		   32, 0, 0, 0, 0, 0, 0, 0, 96, 6, 1, 0, 0, 0, 0, -96,
-		   33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -96,
-		   16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   6, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0,
-		   17, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0,
-		   3, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 64,
-		   4, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0,
-		   5, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
-		   7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32,
-		   8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   9, 0, 0, 0, 0, 0, 0, 0, -96, 5, 0, 0, 0, 0, 0, 64,
-		   11, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
-		   12, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
-		   13, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
-		   14, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
-		   23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-		   0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-	       });
+    public void testIA64() {
+	check(8, false,
+	      new Auxiliary[] {
+		  new Auxiliary(32, -6917529027641014688L
+				/*11529215046068536928*/),
+		  new Auxiliary(33, -6917529027641081856L
+				/*11529215046068469760L*/),
+		  new Auxiliary(16, 0L),
+		  new Auxiliary(6, 16384L),
+		  new Auxiliary(17, 1024L),
+		  new Auxiliary(3, 4611686018427387968L),
+		  new Auxiliary(4, 56L),
+		  new Auxiliary(5, 8L),
+		  new Auxiliary(7, 2305843009213693952L),
+		  new Auxiliary(8, 0L),
+		  new Auxiliary(9, 4611686018427389344L),
+		  new Auxiliary(11, 2548L),
+		  new Auxiliary(12, 2548L),
+		  new Auxiliary(13, 2553L),
+		  new Auxiliary(14, 2553L),
+		  new Auxiliary(23, 0L),
+		  new Auxiliary(0, 0L)
+	      },
+	      new byte[] {
+		  32, 0, 0, 0, 0, 0, 0, 0, 96, 6, 1, 0, 0, 0, 0, -96,
+		  33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -96,
+		  16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  6, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0,
+		  17, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0,
+		  3, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 64,
+		  4, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0,
+		  5, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
+		  7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32,
+		  8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  9, 0, 0, 0, 0, 0, 0, 0, -96, 5, 0, 0, 0, 0, 0, 64,
+		  11, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
+		  12, 0, 0, 0, 0, 0, 0, 0, -12, 9, 0, 0, 0, 0, 0, 0,
+		  13, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
+		  14, 0, 0, 0, 0, 0, 0, 0, -7, 9, 0, 0, 0, 0, 0, 0,
+		  23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+		  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+	      });
     }
 
     /**
@@ -252,55 +239,54 @@ public class TestAuxv
      * on a 64-bit PowerPC machine (PPC970, altivec supported) can be
      * parsed.
      */
-    public void testPPC32 ()
-    {
-	check (4, true,
-	       new Auxiliary [] {
-		   new Auxiliary (22, 22L),
-		   new Auxiliary (22, 22L),
-		   new Auxiliary (19, 128L),
-		   new Auxiliary (20, 128L),
-		   new Auxiliary (21, 0L),
-		   new Auxiliary (33, 1048576L),
-		   new Auxiliary (16, 3690987520L),
-		   new Auxiliary (6, 4096L),
-		   new Auxiliary (17, 100L),
-		   new Auxiliary (3, 268435508L),
-		   new Auxiliary (4, 32L),
-		   new Auxiliary (5, 7L),
-		   new Auxiliary (7, 0L),
-		   new Auxiliary (8, 0L),
-		   new Auxiliary (9, 268436304L),
-		   new Auxiliary (11, 2548L),
-		   new Auxiliary (12, 2548L),
-		   new Auxiliary (13, 2553L),
-		   new Auxiliary (14, 2553L),
-		   new Auxiliary (23, 0L),
-		   new Auxiliary (0, 0L)
-	       },
-	       new byte[] {
-		   0, 0, 0, 22, 0, 0, 0, 22,
-		   0, 0, 0, 22, 0, 0, 0, 22,
-		   0, 0, 0, 19, 0, 0, 0, -128,
-		   0, 0, 0, 20, 0, 0, 0, -128,
-		   0, 0, 0, 21, 0, 0, 0, 0,
-		   0, 0, 0, 33, 0, 16, 0, 0,
-		   0, 0, 0, 16, -36, 0, 0, 0,
-		   0, 0, 0, 6, 0, 0, 16, 0,
-		   0, 0, 0, 17, 0, 0, 0, 100,
-		   0, 0, 0, 3, 16, 0, 0, 52,
-		   0, 0, 0, 4, 0, 0, 0, 32,
-		   0, 0, 0, 5, 0, 0, 0, 7,


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


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

only message in thread, other threads:[~2008-06-04 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-04 22:21 [SCM] master: Don't include the trailing NUL in a slurped file buffer cagney

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