Bug 393468 - In mingw toolchain: if multiple source files have the same name, then setting a breakpoint in one will set the breakpoint in all
Summary: In mingw toolchain: if multiple source files have the same name, then setting...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: Next   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: 2012-11-02 17:43 EDT by Grzegorz Kuligowski CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (3.74 KB, text/plain)
2012-11-02 17:43 EDT, Grzegorz Kuligowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Kuligowski CLA 2012-11-02 17:43:22 EDT
Created attachment 223140 [details]
Proposed patch

Using mingw toolchain:

If you have multiple source files with the same name, then setting a breakpoint in one file will in true set breakpoints in all of them.

So you have files d1\unit.cpp and d2\unit.cpp. You click on the margin  of d1\unit.cpp to set the breakpoint. In true the program will break in both files.

The behaviour is due to workaround for bug in gdb in mingw. The bugs were mentioned in 232415, 369622 and 196154. However I tested it using gdb 7.5 in mingw distribution and this bug doesn't appear any more.

I attach the proposed patch. This is naive - it doesn't check what version of gdb is currently installed on the system.