[Bug 63883] breakpoint do not work if there are 2 files with the same name

shift at newmail.ru shift at newmail.ru
Tue Sep 9 06:57:04 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=63883     




------- Additional Comments From shift at newmail.ru  2003-09-09 06:56 -------
Subject: Re:  breakpoint do not work if there are 2 files with the same name

project is Automake-based C++, imported from pre-existing automake/autoconf 
files. 

i set a break point in my  lib2/data.cpp, 
and when i start debugging, the GDB prints the following:

(gdb) break data.cpp:541
No line 541 in file "data.cpp" 

remark: 
the file lib1/data.cpp has only 155 lines

actually -- i could not find a way to reffer to lib1/data.cpp in gdb command 
line -- my temprorary workaround is to set breakpoints on the method calls
(it is easy to do in ddd, since it has command-line-auto-completion :-), but 
its source browser does not display subdirs -- i have only one data.cpp there 
:-) ) 

note: my project does not have src directory, like new automake-based project 
creates, and all the necesary automake stuff was created using simply 
'automake -a -c' and 'libtoolize -c'  -- i.e. not what new automake-based 
project offers. 

the project directory tree looks like the following 

./  -- only auto* stuff, kdevelop project file and makefiles 
./lib1 -- contains sources of lib1.a 
./lib2 -- contains sources of lib2.a
./lib2/sublib1  -- contains sources of libsublib1.a
./progname -- contatins sources of progname binary, 
                        plus it links with  .a libs listed above.  
 

and,  my gdb is version 5.3, my linux is SuSE 8.2 


On Monday 08 September 2003 01:33, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=63883
>
>
>
>
> ------- Additional Comments From jbb at kdevelop.org  2003-09-08 08:33 -------
> Very odd. The breakpoints are set with the full path name (or they used to
> be). What does the GDB window say when it tries to set a breakpoint?
> __________
> IP - ÔÅÌÅÆÏÎÉÑ, ÄÏÓÔÕÐ × éÎÔÅÒÎÅÔ É ÈÏÓÔÉÎÇ ÐÏ ÏÄÎÏÊ ËÁÒÔÅ, ÚÁËÁÚ
> ÄÏÓÔÁ×ËÉ -- www.zakaz.orc.ru




More information about the KDevelop-devel mailing list