Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Greg, would you test these patches?

Greg,

I only found problems in org.eclipse.ptp.debug.external.core.
Were there any other plug-ins with problems?

Here is the patch for org.eclipse.ptp.debug.external.core.

Regards,
R^2

On Tue, 2006-06-06 at 13:12 -0600, Randy M. Roberts wrote:
> Oops.  Your right, I had forgotten to import those plug-ins.
> It may be a while before I can get you updated patches.
> 
> Regards,
> R^2

Index: src/org/eclipse/ptp/debug/external/core/AbstractDebugger.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.ptp/debug/org.eclipse.ptp.debug.external.core/src/org/eclipse/ptp/debug/external/core/AbstractDebugger.java,v
retrieving revision 1.17
diff -u -r1.17 AbstractDebugger.java
--- src/org/eclipse/ptp/debug/external/core/AbstractDebugger.java	10 May 2006 00:29:08 -0000	1.17
+++ src/org/eclipse/ptp/debug/external/core/AbstractDebugger.java	6 Jun 2006 19:21:09 -0000
@@ -86,8 +86,8 @@
 
 	public final void initialize(IPJob job, int timeout) throws CoreException {
 		this.job = job;
-		job.setAttribute(TERMINATED_PROC_KEY, new BitList(job.size()));
-		job.setAttribute(SUSPENDED_PROC_KEY, new BitList(job.size()));
+		job.setAttribute(TERMINATED_PROC_KEY, new BitList(job.totalProcesses()));
+		job.setAttribute(SUSPENDED_PROC_KEY, new BitList(job.totalProcesses()));
 		commandQueue = new DebugCommandQueue(this, timeout);
 		commandQueue.start();
 		
@@ -279,7 +279,7 @@
 	}
 	public boolean isJobFinished() {
 		BitList terminatedTasks = (BitList) job.getAttribute(TERMINATED_PROC_KEY);
-		return (terminatedTasks.cardinality() == job.size());
+		return (terminatedTasks.cardinality() == job.totalProcesses());
 	}
 
 	//internal functions
Index: simulator/org/eclipse/ptp/debug/external/core/simulator2/DebugSimulation2.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.ptp/debug/org.eclipse.ptp.debug.external.core/simulator/org/eclipse/ptp/debug/external/core/simulator2/DebugSimulation2.java,v
retrieving revision 1.7
diff -u -r1.7 DebugSimulation2.java
--- simulator/org/eclipse/ptp/debug/external/core/simulator2/DebugSimulation2.java	2 Jun 2006 08:20:33 -0000	1.7
+++ simulator/org/eclipse/ptp/debug/external/core/simulator2/DebugSimulation2.java	6 Jun 2006 19:21:09 -0000
@@ -110,7 +110,7 @@
 	public void startDebugger(final IPJob job) {
 		new Thread(new Runnable() {
 			public void run() {
-				total_process = job.size();
+				total_process = job.totalProcesses();
 				for (int i = 0; i < total_process; i++) {
 					SimulateProgram sim_program = new SimulateProgram(i, APP_NAME);
 					sim_program.addObserver(DebugSimulation2.this);

Back to the top