| Summary: | duplicate source filenames break breakpoint behavior | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Doug Crawford <dcraw101> |
| Component: | cdt-debug | Assignee: | cdt-debug-inbox <cdt-debug-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | elaskavaia.cdt, jamesblackburn+eclipse, rogernelson45687 |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Doug Crawford
These are two separate problems. The error parser problem is fixed in CDT 3.1.1. The breakpoint problem is different and I'll leave this bug open to address that. With the breakpoint issue, I mentioned that the debugger might stop in the wrong file at some random location. That is not exactly what is happening. Lets say I have file1 and file2 with the same name but in different directories. Assume I set a breakpoint at line 16 in file1. If I start the debugger and a function in file2 is called before anything in file1 then the debugger will stop in file2 at line 16 (even though I never defined any breakpoints in file2). Then when the program exits I now see that both file1 and file2 have blue breakpoint markers at line 16. Unfortunately, this is a bug in gdb. If there are two files with the same name in the project gdb always sets a breakpoint at the file it finds for the first time. BTW, blue marker means that you tried to set a breakpoint on a running session. But if the breakpoint is set succesfully the marker has a little check mark on it. This is not gdb bug. If for ex. we have to source files: file.cpp other/file.cpp breakpoint in other/file.cpp can be set by 'break other/file.cpp:5' There is no programmatic way to fix breakpoint for files with the basename, but we implemented special option that allows to fix it in some cases. Debug tab of Launch config has an option "Use full file name to set breakpoints". If you enable it will use distinct name. For that to work debug info should have full names name and source paths should be the same as IDE sees it. Find and delete duplicate files in seconds with Easy Duplicate Finder. Speed up your computer and free up disk space by deleting duplicate files. You can recover gigabytes of space, make your computer faster, and organize your files. Oct an instant scan and find all the duplicates on your PC or Mac. Easy Duplicate Finderâ„¢ is a powerful tool to find and remove duplicate photos, documents, MP3s, videos, and more. It makes deleting duplicate files easy and fun. (In reply to Doug Schaefer from comment #1) > These are two separate problems. The error parser problem is fixed in CDT > 3.1.1. The breakpoint problem is different and I'll leave this bug open to > address that. Find and delete duplicate files in seconds with Easy Duplicate Finder. Speed up your computer and free up disk space by deleting duplicate files. You can recover gigabytes of space, make your computer faster, and organize your files. Oct an instant scan and find all the duplicates on your PC or Mac. Easy Duplicate Finderâ„¢ is a powerful tool to find and remove duplicate photos, documents, MP3s, videos, and more. It makes deleting duplicate files easy and fun. |