Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317530 - TCFServiceManager.launchAgent(ITCFAgentLauncher) peer matching is inexact
Summary: TCFServiceManager.launchAgent(ITCFAgentLauncher) peer matching is inexact
Status: RESOLVED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 18:34 EDT by John Cortell CLA
Modified: 2019-12-30 18:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/