[SCM] master: For "regs" set on __powerpc64__ do not return usr set.

cagney@sourceware.org cagney@sourceware.org
Wed Dec 5 16:55:00 GMT 2007


The branch, master has been updated
       via  57c114a4078d7283c05e8262cbe7b7d08ad52ae5 (commit)
      from  7d3bf0bd1f52d0b50f8bf7618ebcbb53da15bd13 (commit)

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

- Log -----------------------------------------------------------------
commit 57c114a4078d7283c05e8262cbe7b7d08ad52ae5
Author: Andrew Cagney <cagney@redhat.com>
Date:   Wed Dec 5 11:54:23 2007 -0500

    For "regs" set on __powerpc64__ do not return usr set.
    
    frysk-sys/frysk/sys/ChangeLog
    2007-12-05  Andrew Cagney  <cagney@redhat.com>
    
    	* cni/Ptrace.cxx (regs) [__powerpc64__]: Delete code; do not
    	return USR section for REGS section.
    	(fpregs): Similar.

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

Summary of changes:
 frysk-sys/frysk/sys/ChangeLog      |    6 ++++++
 frysk-sys/frysk/sys/cni/Ptrace.cxx |    8 --------
 2 files changed, 6 insertions(+), 8 deletions(-)

First 500 lines of diff:
diff --git a/frysk-sys/frysk/sys/ChangeLog b/frysk-sys/frysk/sys/ChangeLog
index b0d4446..2c4494a 100644
--- a/frysk-sys/frysk/sys/ChangeLog
+++ b/frysk-sys/frysk/sys/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-05  Andrew Cagney  <cagney@redhat.com>
+
+	* cni/Ptrace.cxx (regs) [__powerpc64__]: Delete code; do not
+	return USR section for REGS section.
+	(fpregs): Similar.
+	
 2007-12-04  Andrew Cagney  <cagney@redhat.com>
 
 	* Sig.shenum: Delete; merge into ...
diff --git a/frysk-sys/frysk/sys/cni/Ptrace.cxx b/frysk-sys/frysk/sys/cni/Ptrace.cxx
index 5959eb3..c712e5f 100644
--- a/frysk-sys/frysk/sys/cni/Ptrace.cxx
+++ b/frysk-sys/frysk/sys/cni/Ptrace.cxx
@@ -207,10 +207,6 @@ frysk::sys::Ptrace$RegisterSet::regs ()
 #if defined(__i386__)|| defined(__x86_64__)
   return new frysk::sys::Ptrace$RegisterSet (sizeof (user_regs_struct),
 					     PTRACE_GETREGS, PTRACE_SETREGS);
-#elif defined(__powerpc64__)
-  /* PowerPc single register bank which holds ALL registers (of all kinds) */
-  return new frysk::sys::Ptrace$RegisterSet (sizeof(mcontext_t),
-                                             PTRACE_PEEKUSR , PTRACE_POKEUSR);
 #else
   return NULL;
 #endif
@@ -223,10 +219,6 @@ frysk::sys::Ptrace$RegisterSet::fpregs ()
   return new frysk::sys::Ptrace$RegisterSet (sizeof(user_fpregs_struct),
 					     PTRACE_GETFPREGS,
 					     PTRACE_SETFPREGS);
-#elif defined(__powerpc64__)
-  /* PowerPC has a single register bank (by ptrace) and it hold all
-     registers, even the floating pointer ones, special and vector regs */
-  return NULL;
 #else
   return NULL;
 #endif


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



More information about the Frysk-cvs mailing list