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

Bug 366747

Summary: DSF-GDB debug stops at breakpoint defined in another project with same source file name
Product: [Tools] CDT Reporter: Andy Jin <ajin>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andy Jin CLA 2011-12-14 15:34:22 EST
Build Identifier: M20110909-1335

This bug is related to bug 232415. In 232415 a temporary fix was put in MIBreakpointsManager.adjustDebuggerPath() method which strips the full path from the source file and returns only the base name of the file. If two projects having the same source file name (e.g. main.c) debug will stop at wrong breakpoint set in the project not being debugged.

A reference CDT mailing list post is http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg23349.html


Reproducible: Always

Steps to Reproduce:
1. Create two CDT HelloWorld projects, both have "main.c"
2. Add breakpoint at project1:main.c
3. Debug project2, notice it stops at the line number defined in project1:main.c