Debug Mode ENH 1/4: Add pretty function

François Dumont frs.dumont@gmail.com
Mon May 7 20:19:00 GMT 2018


Hi

     Here is the 1st patch of a series to improve Debug Mode feedback.

     This patch add the content of __PRETTY_FUNCTION__ in the debug 
assertion output.

     Tested under Linux x86_64.

     I'll commit tomorrow if not told otherwise.

     * include/debug/formatter.h (_Error_formatter::_M_function): New.
     (_Error_formatter(const char*, unsigned int)): Adapt.
     (_Error_formatter::_M_at): Rename in...
     (_Error_formatter::_S_at): ...that and adapt.
     * include/debug/macros.h (_GLIBCXX_DEBUG_VERIFY_AT_F): New.
     (_GLIBCXX_DEBUG_VERIFY_AT, _GLIBCXX_DEBUG_VERIFY): Adapt.
     * src/c++11/debug.cc (_Error_formatter::_M_error): Render _M_function
     when available.

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_pretty_func.patch
Type: text/x-patch
Size: 3224 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180507/e1317b6b/attachment.bin>


More information about the Libstdc++ mailing list