Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gbacktrace.h File Reference
#include <glib/gtypes.h>
#include <signal.h>

Go to the source code of this file.

Macros

#define G_BREAKPOINT()   G_STMT_START{ raise (SIGTRAP); }G_STMT_END
 

Functions

G_BEGIN_DECLS GLIB_AVAILABLE_IN_ALL void g_on_error_query (const gchar *prg_name)
 
GLIB_AVAILABLE_IN_ALL void g_on_error_stack_trace (const gchar *prg_name)
 

Macro Definition Documentation

◆ G_BREAKPOINT

#define G_BREAKPOINT ( )    G_STMT_START{ raise (SIGTRAP); }G_STMT_END

G_BREAKPOINT:

Inserts a breakpoint instruction into the code.

On architectures which support it, this is implemented as a soft interrupt and on other architectures it raises a SIGTRAP signal.

SIGTRAP is used rather than abort() to allow breakpoints to be skipped past in a debugger if they are not the desired target of debugging.

Definition at line 69 of file gbacktrace.h.

Function Documentation

◆ g_on_error_query()

G_BEGIN_DECLS GLIB_AVAILABLE_IN_ALL void g_on_error_query ( const gchar * prg_name)

◆ g_on_error_stack_trace()

GLIB_AVAILABLE_IN_ALL void g_on_error_stack_trace ( const gchar * prg_name)