This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Debug STL
- From: YAOYUAN <yaoyuan1216 at gmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sat, 29 Sep 2012 10:20:57 +0800
- Subject: Debug STL
Hi, thank your for reading my question!
I've compile gcc-trunk(20120927) myself on
Linux ***-ubuntu 2.6.32-38-generic x86_64 GNU/Linux with
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
and comfigure option:
../gcc-trunk/configure -v --prefix=*** --enable-languages=c,c++
--enable-threads=posix --enable-shared --enable-linker-build-id
--without-included-gettext --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --disable-werror
--enable-checking=release --enable-objc-gc --with-system-zlib
--disable-multilib
It is built successfully. However, when I debug(with gdb 7.5, also built
myself) my code built with -g flag, I find it will step into STL source
code.
For example, with
"cout<<__LINE__<<endl;"
and step in(gdb command), it will step into "std::ostream::operator<<".(I
would like to step over this.)
This would not happen if I use original libstdc++(come with ubuntu 10.04)
together with gcc I built.
So how can I solve this problem? Thanks very much!
Best Regards,
YAO YUAN,
yaoyuan1216@gmail.com