Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369872

Summary: Need to make routing files unique for each run
Product: [Tools] PTP Reporter: Greg Watson <g.watson>
Component: Debug SDMAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0.4   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Greg Watson CLA 2012-01-26 16:42:08 EST
Currently the routing information is stored in a file called "routing_file". Since the same name is used for each run, it is easy for an old file to accidentally get picked up by the SDM. This causes the debugger launch to fail.
Comment 1 Greg Watson CLA 2012-08-15 13:09:02 EDT
This really needs to make the routing file unique for each run. The perl helper scripts could create a temporary file using tempfile(), then pass this to the sdm as an argument. The sdm would need to be modified to accept the routing file path as an argument. 

The bug description has been updated.
Comment 2 Greg Watson CLA 2012-08-16 17:25:06 EDT
The routing file needs to be created in the user's home directory tree or somewhere that is shared across nodes. Using a file in /tmp probably won't work except on a single machine. The cwd for the launch script is probably ok.
Comment 3 Greg Watson CLA 2012-08-20 13:17:10 EDT
Added support to sdm to be able to specify routing file path. Launch scripts will use a unique name (using PID of script) to create a routing file in the current working directory (usually where the executable is located, but not always).