Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314360 - Save-before-launch takes into account platform-defined project references instead of CDT ones
Summary: Save-before-launch takes into account platform-defined project references ins...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 17:00 EDT by John Cortell CLA
Modified: 2020-09-04 15:23 EDT (History)
2 users (show)

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-05-25 17:00:59 EDT
The platform has the notion of one project referencing another. CDT has a more detailed set of relationships that takes into account the CDT build-configuration concept. 

CDT's launch delegates only consider the platform relationships. It should use the CDT ones.

Steps to reproduce problems
1. Create a project p1. By default it has build configurations Debug and Release
2. Create a project p2. By default it has build configurations Debug and Release.
3. Give p1/Debug a reference to p2/Debug in project Properties > C/C++ General > Paths and Symbols > References
4. Do NOT give p1/Release a reference to p2/Release
5. Create a launch configuration for p1, and specify project "p1", build configuration "Debug" in the Main tab
6. Make a change to the source file in p2 but do not save the file
7. Invoke the launch configuration.
You'll get a dialog asking if you want to save the file in p2. That's expected. 8. Cancel
9. Change the launch configuration to refer to build configuration "Release" of project p1.
10. Invoke the launch configuration
You'll get a dialog asking if you want to save the file in p2. That's shouldn't happen. p1/Release does not have a reference to p2 so the launcher shouldn't check to see if there are any unsaved files in p2.