Bug 366747 - DSF-GDB debug stops at breakpoint defined in another project with same source file name
Summary: DSF-GDB debug stops at breakpoint defined in another project with same source...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 15:34 EST by Andy Jin CLA
Modified: 2020-09-04 15:18 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 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