From: Jonathan Wakely GLIBCXX_DEBUG_MESSAGE_LENGTH
can be used to request a
different length.
Note that libstdc++ is able to produce backtraces on error.
- It requires that you configure libstdc++ build with
- --enable-libstdcxx-backtrace=yes
.
- Use -D_GLIBCXX_DEBUG_BACKTRACE
to activate it.
- You'll then have to link with libstdc++_libbacktrace static library
- (-lstdc++_libbacktrace
) to build your application.
When it is not feasible to recompile your entire application, or
+ To enable these, compile with -D_GLIBCXX_DEBUG_BACKTRACE
+ and then link with -lstdc++exp
.
+ These backtraces are not supported on all platforms.
+
When it is not feasible to recompile your entire application, or
only specific containers need checking, debugging containers are
available as GNU extensions. These debugging containers are
functionally equivalent to the standard drop-in containers used in
diff --git a/libstdc++-v3/doc/xml/manual/debug_mode.xml b/libstdc++-v3/doc/xml/manual/debug_mode.xml
index ac15ef6f6d07..a12158fa03ea 100644
--- a/libstdc++-v3/doc/xml/manual/debug_mode.xml
+++ b/libstdc++-v3/doc/xml/manual/debug_mode.xml
@@ -162,11 +162,10 @@ which always works correctly.
different length.
-D_GLIBCXX_DEBUG_BACKTRACE
to activate it.
- You'll then have to link against libstdc++exp static library
- () to build your application.-D_GLIBCXX_DEBUG_BACKTRACE
+ and then link with .
+ These backtraces are not supported on all platforms.
+