GNOME Bugzilla – Bug 83199
G_BREAKPOINT on non-x86 or alpha platforms
Last modified: 2004-12-22 21:47:04 UTC
On non-x86 or alpha platforms, G_BREAKPOINT() needs SIGTRAP defined. Currently apps have to #include <signal.h> conditionally, depending on architecture. I notice that a #include <signal.h> was deliberately removed from gbacktrace.h on 2001/11/02. cvs log doesnt say why though.
See comments on bug 75741 (not dupping because bug 75741 was about something else originally and I don't want to change its title.) Tim considers that if you want to use G_BREAKPOINT() you should (unconditionally) include gsignal.h in your code. I consider that you shouldn't use G_BREAKPOINT() except possibly as a temporary debugging hack.