I do not have any test case . If I debug an executable made of two or three .cpp files, It works fine But I have a very large project which I am working on. In this project we use a number of .a files to create a SO file. Some .a files are built with different optimization levels( is this a problem ), But all of them have been built using -g option. BTW I found a similar issue http://gcc.gnu.org/ml/gcc-bugs/2001-06/msg00288.html http://gcc.gnu.org/ml/gcc-bugs/2001-05/msg00887.html http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2984 but this has been fixed in gcc version 3.0, 3.1 I am using gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54) There is one more information I searched for the symbol using nm in the .so, and used addr2line utility to check for the line number and here is the output which I got nm libDebugProblem.so | c++filt | grep Class1::Class1 00162b9c T Class1::Class1 (char const*, char const*, unsigned int) 00162a50 T Class1::Class1 (char const*, char const*, unsigned int) addr2line 00162b9c -e libDebugProblem.so /disk1/src/Class1.cpp:10 addr2line 00162a50 -e libDebugProblem.so /disk1/src/Class1.cpp:10 Also my system details Gdb - GNU gdb Red Hat Linux (6.3.0.0-1.90rh) GCC - gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54) System - Linux 2.4.21-40.ELsmp #1 SMP Thu Feb 2 22:22:39 EST 2006 i686 i386 GNU/Linux Thanks Yogesh -----Original Message----- From: John Love-Jensen [mailto:eljay@xxxxxxxxx] Sent: Tuesday, July 10, 2007 9:39 PM To: Arora Yogesh-a22623 Cc: MSX to GCC Subject: Re: Debug problem Hi Yogesh, > To illustrate I am sending my gdb log > > (gdb) b Class1::Class1 > [0] cancel > [1] all > [2] Class1::Class1(char const*, char const*, unsigned int) at > Class1.cpp:10 > [3] Class1::Class1$base(char const*, char const*, unsigned int) at > Class1.cpp:10 >> 1 > Breakpoint 2 at 0x6d2ba0: file Class1.cpp, line 10. > Breakpoint 3 at 0x6d2a54: file Class1.cpp, line 10. > warning: Multiple breakpoints were set. > warning: Use the "delete" command to delete unwanted breakpoints. > (gdb) c > Continuing. > > Breakpoint 2, 0x006d2ba0 in Class1::Class1() > at /disk1/src/Class2.cpp:37 > 37 Class2::Class2() Hi Yogesh, Can you give a small example showing the problem? I would like to try to compile the source code and reproduce the problem you are seeing, on my machine. Also, what version of GCC and gdb are you using, on what platform? (My apologies if you already provided this information previously.) Thanks, --Eljay