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

Bug 317530

Summary: TCFServiceManager.launchAgent(ITCFAgentLauncher) peer matching is inexact
Product: [Tools] CDT Reporter: John Cortell <john.cortell>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED WONTFIX QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Cortell CLA 2010-06-21 18:34:09 EDT
AbstractFinalLaunchSequence derivates specifies a minimum set of TCF peer attributes to indicate what agent the launch should use. The launch sequence respects the entire set when looking through the already discovered peers[1], and for determining what agent-launcher to use otherwise[2]. But after asking the agent-launcher to do its thing, it tries to match newly discovered peers based only on the user-friendly peer name (IPeer.ATTR_NAME).

In other words, 

  public void peerAdded(IPeer peer) {
      if (peer.getName().equals(descriptor.getPeerName())) {
          waitForPeer.setData(peer);
      }
  }

is inadequate. For starters, whose to say if the AbstractFinalLaunchSequence derivative even specified IPeer.ATTR_NAME as a qualifying attribute? And even if it did, how about all the other attributes it may have specified?


[1] See the call to tcfServiceManager.getRunningPeers() in AbstractFinalLaunchSequence.findPeer(RequestMonitor)

[2] See the call to tcfServiceManager.getRegisteredAgents() in AbstractFinalLaunchSequence.findPeer(RequestMonitor)
Comment 1 Jonah Graham CLA 2019-12-30 18:39:42 EST
(this is part of a batch change)

The Eclipse CDT EDC (https://wiki.eclipse.org/CDT/cdt-debug-edc) is now obsolete and has not had any active development since 2011. Therefore the still open bugs are being marked as wontfix.

The git repo for the project still exists for posterity at https://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/