Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369130 - Share source line BPs across multiple compilation units can result in walking breakpoints
Summary: Share source line BPs across multiple compilation units can result in walking...
Status: CLOSED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.0.0   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 13:30 EST by Scott Tepavich CLA
Modified: 2013-06-05 05:42 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Tepavich CLA 2012-01-19 13:30:44 EST
Compiling two linux apps with the same source file, and debugging on the same TCF agent, can result in a walking breakpoint.

Example:
1.) Compile a simple linux application.
2.) Copy the application build dir, to another directory.
3.) Add a couple of comment lines to the source and rebuild.
4.) Launch the TCF agent.
5.) Debug the first application.  Plant a BP at a source line directly after where comment lines where added.
6.) Debug the second application.  Observe that the BP is planted at the line appropriate for that process.
7.) Select the original context.

At this point, the original BP was moved to reflect the planting of the second process.

Looking at the agent, this appears to be a side affect of the property bag used for the source line bp.  These are not context specific BPs, and the property bag does not differ much between the two processes.  This results in BP set when debugging the first process, being reused and updated when debugging the second procress.

This may not be a common workflow, but it can occur in a couple of valid workflow scenerios.
Comment 1 Pawel Piech CLA 2012-01-19 18:46:54 EST
Hi Scott,
Do you need your changes to the TCFAnnotationManager in order to observe this, or do you see it also with unmodifies sources from master?
Comment 2 Scott Tepavich CLA 2012-01-19 20:25:27 EST
Hi Pawel -

I was able to reproduce without modified source, but then I did a pull off master to be sure I was up-to-date.  Now I cannot.  I'll update my developement branch with the latest, and verify this is fixed there too.