From: Jonathan Wakely Date: Fri, 16 Feb 2024 10:43:19 +0000 (+0000) Subject: libstdc++: Improve docs for debug mode backtraces X-Git-Tag: basepoints/gcc-15~1112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aef0a9b07766d100a218ef3e9576d0a0dd35a2d;p=thirdparty%2Fgcc.git libstdc++: Improve docs for debug mode backtraces The configure option is no longer necessary. libstdc++-v3/ChangeLog: * doc/xml/manual/debug_mode.xml: Update docs for backtraces. * doc/html/manual/debug_mode_using.html: Regenerate. --- diff --git a/libstdc++-v3/doc/html/manual/debug_mode_using.html b/libstdc++-v3/doc/html/manual/debug_mode_using.html index e26d06c91799..70d6692f5140 100644 --- a/libstdc++-v3/doc/html/manual/debug_mode_using.html +++ b/libstdc++-v3/doc/html/manual/debug_mode_using.html @@ -10,11 +10,10 @@ 78 characters. The environment variable 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.

Using a Specific Debug Container

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. +

Using a Specific Debug Container

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. Note that libstdc++ is able to produce backtraces on error. - It requires that you configure libstdc++ build with - . - Use -D_GLIBCXX_DEBUG_BACKTRACE to activate it. - You'll then have to link against libstdc++exp static library - () to build your application. + To enable these, compile with -D_GLIBCXX_DEBUG_BACKTRACE + and then link with . + These backtraces are not supported on all platforms. +

Using a Specific Debug Container