STL pretty printing exceptions when running in google test

Jonathan Wakely jwakely@redhat.com
Thu Oct 4 17:06:00 GMT 2018


On 04/10/18 15:34 +0000, P G wrote:
>Compile flags: -g -std=gnu++14 -flto -O0

Debugging with LTO in GCC 7 doesn't work well.

See https://gcc.gnu.org/gcc-8/changes.html#general 

* Link-time optimization improvements:

    We have significantly improved debug information on ELF targets
    using DWARF by properly preserving language-specific information.
    This allows for example the libstdc++ pretty-printers to work with
    LTO optimized executables.



More information about the Libstdc++ mailing list