This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Making alll sys and core tests pass on x86-64
- From: Mark Wielaard <mark at klomp dot org>
- To: frysk at sources dot redhat dot com
- Date: Fri, 28 Jul 2006 21:22:17 +0200
- Subject: Making alll sys and core tests pass on x86-64
Hi,
This tiny little patch finally makes all frysk-sys and frysk-core tests
PASS (/me dances around). Double checked that x86 also still pass. Hope
this also helps for other platforms.
2006-07-28 Mark Wielaard <mark@klomp.org>
* Ptrace.java (poke): Change data parameter from int to long.
* cni/Ptrace.cxx (poke): Likewise.
Together with the last Ptrace patch from Tim this also seems to fix
http://sourceware.org/bugzilla/show_bug.cgi?id=1547 if I understood that
report correctly.
Cheers,
Mark
Index: frysk-sys/frysk/sys/cni/Ptrace.cxx
===================================================================
RCS file: /cvs/frysk/frysk-sys/frysk/sys/cni/Ptrace.cxx,v
retrieving revision 1.6
diff -u -r1.6 Ptrace.cxx
--- frysk-sys/frysk/sys/cni/Ptrace.cxx 17 Jul 2006 16:43:47 -0000 1.6
+++ frysk-sys/frysk/sys/cni/Ptrace.cxx 28 Jul 2006 18:49:03 -0000
@@ -182,7 +182,7 @@
void
frysk::sys::Ptrace::poke(jint peekRequest, jint pid, jstring paddr,
- jint data)
+ jlong data)
{
_callPtrace((enum __ptrace_request) peekRequest, pid, (char *)paddr,
data, "ptrace.poke");
Index: frysk-sys/frysk/sys/Ptrace.java
===================================================================
RCS file: /cvs/frysk/frysk-sys/frysk/sys/Ptrace.java,v
retrieving revision 1.8
diff -u -r1.8 Ptrace.java
--- frysk-sys/frysk/sys/Ptrace.java 17 Jul 2006 16:43:47 -0000 1.8
+++ frysk-sys/frysk/sys/Ptrace.java 28 Jul 2006 18:49:03 -0000
@@ -103,7 +103,7 @@
* Copy the word in data to child's addr.
*/
public static native void poke(int pokeRequest, int pid, String paddr,
- int data);
+ long data);
/**
* Create an attached child process. Uses PT_TRACEME.
*/