Use SIGTRAP (via G_BREAKPOINT()) if G_DEBUG=fatal-warnings
authorColin Walters <walters@verbum.org>
Tue, 26 Apr 2011 17:04:25 +0000 (13:04 -0400)
committerColin Walters <walters@verbum.org>
Thu, 28 Apr 2011 18:48:48 +0000 (14:48 -0400)
commita04efe6afb63d54e12ff8f329cbaf458a2e31b26
tree42ee8fdaf521f38ea18c3decf095795fd96d15f2
parent1763c2a575a959efa96795fc8d9d2cff60dd70cc
Use SIGTRAP (via G_BREAKPOINT()) if G_DEBUG=fatal-warnings

On Linux with gdb, it's much more convenient to debug programs using
G_DEBUG=fatal-warnings if we send SIGTRAP instead of abort() by
default.  The default handler for both is to terminate the process.

In particular this makes it more easily possible to debug a warning
that's not the first in a program; you can skip past it and
go to the warning you care about.

The "aborting..." message is removed since it's no longer accurate,
and anyways was never very useful; crashes should show up in ABRT/apport
type crash catching systems.

https://bugzilla.gnome.org/show_bug.cgi?id=648423
glib/gmessages.c