public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM] master: Move sendRefresh to DeadProc.
@ 2008-02-21 3:58 cagney
0 siblings, 0 replies; only message in thread
From: cagney @ 2008-02-21 3:58 UTC (permalink / raw)
To: frysk-cvs
The branch, master has been updated
via ece936fc820e162db4cc1e29e76bc1d2e1658e77 (commit)
from 90ee18a041aa5c6d3306ac716d6bda587d0bb7c0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit ece936fc820e162db4cc1e29e76bc1d2e1658e77
Author: Andrew Cagney <cagney@redhat.com>
Date: Wed Feb 20 22:57:59 2008 -0500
Move sendRefresh to DeadProc.
frysk-core/frysk/proc/dead/ChangeLog
2008-02-20 Andrew Cagney <cagney@redhat.com>
* LinuxExeProc.java (sendRefresh()): Delete.
* LinuxCoreProc.java (sendRefresh()): Delete.
* DeadProc.java (requestRefresh()): Simplify.
(sendRefresh()): New.
-----------------------------------------------------------------------
Summary of changes:
frysk-core/frysk/proc/dead/ChangeLog | 5 +++++
frysk-core/frysk/proc/dead/DeadProc.java | 10 +++-------
frysk-core/frysk/proc/dead/LinuxCoreProc.java | 4 ----
frysk-core/frysk/proc/dead/LinuxExeProc.java | 8 ++------
4 files changed, 10 insertions(+), 17 deletions(-)
First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index a98393b..a79fb3b 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,5 +1,10 @@
2008-02-20 Andrew Cagney <cagney@redhat.com>
+ * LinuxExeProc.java (sendRefresh()): Delete.
+ * LinuxCoreProc.java (sendRefresh()): Delete.
+ * DeadProc.java (requestRefresh()): Simplify.
+ (sendRefresh()): New.
+
* LinuxCoreProc.java (constructAuxv(ElfData)): New.
(constructTasks(ElfData,ISA)): Replace sendRefresh.
diff --git a/frysk-core/frysk/proc/dead/DeadProc.java b/frysk-core/frysk/proc/dead/DeadProc.java
index d89f3a6..500ab83 100644
--- a/frysk-core/frysk/proc/dead/DeadProc.java
+++ b/frysk-core/frysk/proc/dead/DeadProc.java
@@ -42,8 +42,6 @@ package frysk.proc.dead;
import java.util.logging.Level;
import frysk.proc.Proc;
import frysk.proc.Host;
-import frysk.proc.Manager;
-import frysk.proc.ProcEvent;
/**
* A dead Host/Proc/Task is characterised by its lack of state, and an
@@ -69,11 +67,9 @@ public abstract class DeadProc extends Proc {
*/
public void requestRefresh() {
logger.log(Level.FINE, "{0} requestRefresh\n", this);
- Manager.eventLoop.add(new ProcEvent(this) {
- public void execute() {
- proc.sendRefresh ();
- }
- });
+ }
+ public void sendRefresh() {
+ logger.log(Level.FINE, "{0} sendRefresh\n", this);
}
protected void performDetach() {
diff --git a/frysk-core/frysk/proc/dead/LinuxCoreProc.java b/frysk-core/frysk/proc/dead/LinuxCoreProc.java
index 2e53c75..1d45e04 100644
--- a/frysk-core/frysk/proc/dead/LinuxCoreProc.java
+++ b/frysk-core/frysk/proc/dead/LinuxCoreProc.java
@@ -95,10 +95,6 @@ public class LinuxCoreProc extends DeadProc {
constructTasks(noteSection);
}
- public void sendRefresh() {
- // Do nothing; already done.
- }
-
/**
* Find and create the core tasks.
*/
diff --git a/frysk-core/frysk/proc/dead/LinuxExeProc.java b/frysk-core/frysk/proc/dead/LinuxExeProc.java
index 00c9af8..4732d0e 100644
--- a/frysk-core/frysk/proc/dead/LinuxExeProc.java
+++ b/frysk-core/frysk/proc/dead/LinuxExeProc.java
@@ -60,13 +60,9 @@ public class LinuxExeProc extends DeadProc {
this.host = host;
this.elfData = data;
sendRefresh();
- buildMetaData();
- }
-
- public void sendRefresh() {
ISA isa = ElfMap.getISA(elfData.getParent().getEHeader());
- LinuxExeTask newTask = new LinuxExeTask(this, isa);
- newTask.getClass();
+ new LinuxExeTask(this, isa);
+ buildMetaData();
}
public Auxv[] getAuxv() {
hooks/post-receive
--
frysk system monitor/debugger
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-21 3:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 3:58 [SCM] master: Move sendRefresh to DeadProc 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).