public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Make Task's request Add/Delete Instruction Observer methods abstract.
@ 2008-01-03 20:59 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-01-03 20:59 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  ff3454d067b7877424689cc4696b8de7affbc014 (commit)
      from  a3e5b92b48251724a597a2c727cc193bb8fa28c1 (commit)

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

- Log -----------------------------------------------------------------
commit ff3454d067b7877424689cc4696b8de7affbc014
Author: Andrew Cagney <cagney@toil.yyz.redhat.com>
Date:   Thu Jan 3 15:58:56 2008 -0500

    Make Task's request Add/Delete Instruction Observer methods abstract.
    
    frysk-core/frysk/proc/ChangeLog
    2008-01-03  Andrew Cagney  <cagney@redhat.com>
    
    	* Task.java (requestAddInstructionObserver(TaskObserver.Instruction)):
    	Make abstract.
    	(requestDeleteInstructionObserver(TaskObserver.Instruction)): Make
    	abstract.
    
    frysk-core/frysk/proc/dead/ChangeLog
    2008-01-03  Andrew Cagney  <cagney@redhat.com>
    
    	* DeadTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
    	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.
    
    frysk-core/frysk/proc/dummy/ChangeLog
    2008-01-03  Andrew Cagney  <cagney@redhat.com>
    
    	* DummyTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
    	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.
    
    frysk-core/frysk/proc/live/ChangeLog
    2008-01-03  Andrew Cagney  <cagney@redhat.com>
    
    	* LiveTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
    	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.

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

Summary of changes:
 frysk-core/frysk/proc/ChangeLog            |    7 +++++++
 frysk-core/frysk/proc/Task.java            |   10 ++--------
 frysk-core/frysk/proc/dead/ChangeLog       |    5 +++++
 frysk-core/frysk/proc/dead/DeadTask.java   |   18 ++++++++++++++++++
 frysk-core/frysk/proc/dummy/ChangeLog      |    5 +++++
 frysk-core/frysk/proc/dummy/DummyTask.java |    6 ++++++
 frysk-core/frysk/proc/live/ChangeLog       |    5 +++++
 frysk-core/frysk/proc/live/LiveTask.java   |   21 +++++++++++++++++++++
 8 files changed, 69 insertions(+), 8 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index bec7198..2173755 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-03  Andrew Cagney  <cagney@redhat.com>
+
+	* Task.java (requestAddInstructionObserver(TaskObserver.Instruction)):
+	Make abstract.
+	(requestDeleteInstructionObserver(TaskObserver.Instruction)): Make
+	abstract.
+
 2008-01-02  Andrew Cagney  <cagney@redhat.com>
 
 	frysk.proc.live.LinuxHost renamed to .LinuxPtraceHost and
diff --git a/frysk-core/frysk/proc/Task.java b/frysk-core/frysk/proc/Task.java
index 2f142aa..56ff8b4 100644
--- a/frysk-core/frysk/proc/Task.java
+++ b/frysk-core/frysk/proc/Task.java
@@ -790,18 +790,12 @@ public abstract class Task {
      * starts running again (is not blocked or stopped) and executes
      * the next instruction.
      */
-    public void requestAddInstructionObserver(TaskObserver.Instruction o) {
-	logger.log(Level.FINE, "{0} requestAddInstructionObserver\n", this);
-	proc.requestAddInstructionObserver(this, instructionObservers, o);
-    }
+    public abstract void requestAddInstructionObserver(TaskObserver.Instruction o);
 
     /**
      * Delete TaskObserver.Instruction from the TaskObserver pool.
      */
-    public void requestDeleteInstructionObserver(TaskObserver.Instruction o) {
-	logger.log(Level.FINE, "{0} requestDeleteInstructionObserver\n", this);
-	proc.requestDeleteInstructionObserver(this, instructionObservers, o);
-    }
+    public abstract void requestDeleteInstructionObserver(TaskObserver.Instruction o);
   
     /**
      * Notify all Instruction observers. Returns the total number of
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index 4fecae0..1f1de0f 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-03  Andrew Cagney  <cagney@redhat.com>
+
+	* DeadTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
+	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.
+
 2008-01-03  Phil Muldoon  <pmuldoon@redhat.com>
 
 	* TestCoreRegs.java (testFloatingRegisters): Enable.
diff --git a/frysk-core/frysk/proc/dead/DeadTask.java b/frysk-core/frysk/proc/dead/DeadTask.java
index e1e0590..fa4e35c 100644
--- a/frysk-core/frysk/proc/dead/DeadTask.java
+++ b/frysk-core/frysk/proc/dead/DeadTask.java
@@ -265,4 +265,22 @@ abstract class DeadTask extends Task {
     public void requestDeleteCodeObserver(TaskObserver.Code o, long a) {
 	throw new RuntimeException("requestDeleteCodeObserver");
     }
+
+    /**
+     * Request the addition of a Instruction observer that will be
+     * notified as soon as the task executes an instruction.
+     * <code>o.updateExecuted</code> is called as soon as the Task
+     * starts running again (is not blocked or stopped) and executes
+     * the next instruction.
+     */
+    public void requestAddInstructionObserver(TaskObserver.Instruction o) {
+	throw new RuntimeException("requestAddInstructionObserver");
+    }
+
+    /**
+     * Delete TaskObserver.Instruction from the TaskObserver pool.
+     */
+    public void requestDeleteInstructionObserver(TaskObserver.Instruction o) {
+	throw new RuntimeException("requestDeleteInstructionObserver");
+    }
 }
diff --git a/frysk-core/frysk/proc/dummy/ChangeLog b/frysk-core/frysk/proc/dummy/ChangeLog
index 0a94321..f8cf0b2 100644
--- a/frysk-core/frysk/proc/dummy/ChangeLog
+++ b/frysk-core/frysk/proc/dummy/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-03  Andrew Cagney  <cagney@redhat.com>
+
+	* DummyTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
+	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.
+
 2008-01-02  Andrew Cagney  <cagney@redhat.com>
 
 	* DummyTask.java (set(TaskState)): Delete.
diff --git a/frysk-core/frysk/proc/dummy/DummyTask.java b/frysk-core/frysk/proc/dummy/DummyTask.java
index 25d77a6..f564dd8 100644
--- a/frysk-core/frysk/proc/dummy/DummyTask.java
+++ b/frysk-core/frysk/proc/dummy/DummyTask.java
@@ -151,4 +151,10 @@ public class DummyTask extends Task {
     public void requestDeleteCodeObserver(TaskObserver.Code o, long a) {
 	throw new RuntimeException("oops!");
     }
+    public void requestAddInstructionObserver(TaskObserver.Instruction o) {
+	throw new RuntimeException("oops!");
+    }
+    public void requestDeleteInstructionObserver(TaskObserver.Instruction o) {
+	throw new RuntimeException("oops!");
+    }
 }
diff --git a/frysk-core/frysk/proc/live/ChangeLog b/frysk-core/frysk/proc/live/ChangeLog
index 674c0ca..5b75066 100644
--- a/frysk-core/frysk/proc/live/ChangeLog
+++ b/frysk-core/frysk/proc/live/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-03  Andrew Cagney  <cagney@redhat.com>
+
+	* LiveTask.java (requestAddInstructionObserver(TaskObserver.Instruction)): New.
+	(requestDeleteInstructionObserver(TaskObserver.Instruction)): New.
+
 2008-01-02  Andrew Cagney  <cagney@redhat.com>
 
 	* LinuxPtraceHost.java: Rename LinuxHost.java.
diff --git a/frysk-core/frysk/proc/live/LiveTask.java b/frysk-core/frysk/proc/live/LiveTask.java
index 3f69f0d..7ef908f 100644
--- a/frysk-core/frysk/proc/live/LiveTask.java
+++ b/frysk-core/frysk/proc/live/LiveTask.java
@@ -337,4 +337,25 @@ abstract class LiveTask extends Task {
 	logger.log(Level.FINE, "{0} requestDeleteCodeObserver\n", this);
 	getProc().requestDeleteCodeObserver(this, codeObservers, o, a);
     }
+
+    /**
+     * Request the addition of a Instruction observer that will be
+     * notified as soon as the task executes an instruction.
+     * <code>o.updateExecuted</code> is called as soon as the Task
+     * starts running again (is not blocked or stopped) and executes
+     * the next instruction.
+     */
+    public void requestAddInstructionObserver(TaskObserver.Instruction o) {
+	logger.log(Level.FINE, "{0} requestAddInstructionObserver\n", this);
+	getProc().requestAddInstructionObserver(this, instructionObservers, o);
+    }
+
+    /**
+     * Delete TaskObserver.Instruction from the TaskObserver pool.
+     */
+    public void requestDeleteInstructionObserver(TaskObserver.Instruction o) {
+	logger.log(Level.FINE, "{0} requestDeleteInstructionObserver\n", this);
+	getProc().requestDeleteInstructionObserver(this, instructionObservers, o);
+    }
+  
 }


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


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

only message in thread, other threads:[~2008-01-03 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 20:59 [SCM] master: Make Task's request Add/Delete Instruction Observer methods abstract 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).