From: SourceForge.net <no...@so...> - 2007-08-16 14:30:52
|
Bugs item #1775487, was opened at 2007-08-16 09:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1775487&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: gdb Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Doug Schaefer (dougschaefer) Assigned to: Chris Johns (cjohns) Summary: dw2 - setting line breakpoints confused by backslash in path Initial Comment: Steps to reproduce: - Create a simple main.cpp file with a main. - Create a subdirectory in the same directory. - Compile main.cpp from that directory using a backslash in the path, i.e. gcc -c ..\main.cpp, using the dw2-2 version of gcc. - Debug the resulting app and try to set a breakpoint at main.cpp:10. - gdb reports that there is no line 10 in main.cpp. Debugging gdb, in lookup_symtab, I see it returning two symbol tables, one for ../main.cpp and one for ..\main.cpp. Only one of them has an associated linetable. Unfortunatley gdb only checks one of them and picks the wrong one. I'm not sure why there are two entries. The psymtab in dwarf2_psymtab_to_symtab seems to have a dependency between the two files which is why I think you get the two entries. Now is this a problem in the dwarf info generated by gcc, or a problem with gdb using that info, I'm not sure. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1775487&group_id=2435 |