Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Changes in ptp.core

Not sure if you guys are aware of this or not, but the debug package is full of errors - apparently from a missing package. Perhaps you didn't commit a new package you made?
Example: one file does

import org.eclipse.ptp.debug.internal.core.breakpoints.PBreakpoint;

But there's no ...core.breakpoints package, there's a core.breakpoints.moved package.

-- Nathan
Correspondence
---------------------------------------------------------------------
Nathan DeBardeleben, Ph.D.
Los Alamos National Laboratory
Parallel Tools Team
High Performance Computing Environments
phone: 505-667-3428
email: ndebard@xxxxxxxx
---------------------------------------------------------------------



Donny Kurniawan wrote:

Hi Nathan,

As discussed with Greg today, we have decided to bring the runtime
simulator and the debug simulator closer. For example, we think that
the I/O (simulated) for processes should come from the runtime system
rather than the debug simulator.

Thus, I've created SimProcess in org.eclipse.ptp.rtsystem.simulation.
SimProcess implements IPProcess. Thus, it can be passed as a
replacement for PProcess. SimProcess extends java.lang.Process (to
make it behave like a real process but there is no operating system
process underneath). It will print output for some time and then it
will exit. Also, SimProcess has simulated threads and stack-frames
(after all, a real process also has threads, stack-frames, etc.).
I'm sure that it will impact the performance during the simulator
start-up. But, after this, I'll try to optimize it.

Changes:
PElementInfo.java: Changed the method signatures from PElement to IPElement
SimInputStream.java: New file
SimOutputStream.java: New file
SimProcess.java: New file
SimQueue.java: New file
SimStackFrame.java: New file
SimThread.java: New file
SimVariable.java: New file
ModelManager.java: I tried to bring the changes to minimum, so in
getProcsForNewJob(), I added a code to detect whether it's a simulated
control system or not. If it's simulated, it creates SimProcess, if
not, it creates PProcess. Feel free to change it.



Thanks,
Donny
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top