Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 02/20/2013 10:28 PM, Tom Tromey wrote:
FWIW we have the same problem in reverse: the gdb group at Red Hat is,
among other things, tasked with improving the C++ debugging experience.
However, most of us don't actually debug C++ programs on a regular
basis.  We do know some issues, via bugzilla and other discussions, but
I feel sure we are also missing things.

One related thing that struck me now is how __gnu_cxx::__verbose_terminate_handler prints out a helpful message to stderr, but if all you have is a gdb backtrace upon the resulting SIGABRT (like in thread 1 of <https://bugzilla.redhat.com/attachment.cgi?id=754479> attached to <https://bugzilla.redhat.com/show_bug.cgi?id=968424> ABRT report), you cannot see what that message was.

It would be cool if there were a way to see that message in the gdb backtrace. Like __gnu_cxx::__verbose_terminate_handler assembling the message and then calling a not-optimized-away helper function with the message as argument, which in turn calls fputs and abort (though I notice that __verbose_terminate_handler currently "assembles" messages through multiple calls to fputs, which saves it from malloc hassles).

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.