[ramana@numenor acolon]$ /gccbuild/gccfresh/installhere/bin/g++ --version g++ (GCC) 3.5.0 20040128 (experimental) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [ramana@numenor acolon]$ /gccbuild/gccfresh/installhere/bin/g++ -g3 -static fail.cpp [ramana@numenor acolon]$ /gccbuild/gdbfresh/intelbuildhere/gdb/gdb a.out GNU gdb 2004-01-28-cvs Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) b A::A() Breakpoint 1 at 0x8048271: file fail.cpp, line 18. (gdb) r Starting program: /home/ramana/comedi/unipune/acolon/a.out Breakpoint 1, A (this=0x80bf180) at fail.cpp:19 19 bFlag = false; // Here I want to place a breakpoint (gdb) n 20 num = 9; (gdb) n 21 } (gdb) n main (argc=1, argv=0xbfffeaa4) at fail.cpp:14 14 return 0; (gdb) n 15 } (gdb) n 0x0805ab53 in __libc_start_main () (gdb) c Continuing. Program exited normally. (gdb)