gbacktrace.h   gbacktrace.h 
skipping to change at line 55 skipping to change at line 55
* The prg_name arg is required by gdb to find the executable, if it is * The prg_name arg is required by gdb to find the executable, if it is
* passed as NULL, g_on_error_query() will try g_get_prgname(). * passed as NULL, g_on_error_query() will try g_get_prgname().
*/ */
void g_on_error_query (const gchar *prg_name); void g_on_error_query (const gchar *prg_name);
void g_on_error_stack_trace (const gchar *prg_name); void g_on_error_stack_trace (const gchar *prg_name);
/* Hacker macro to place breakpoints for selected machines. /* Hacker macro to place breakpoints for selected machines.
* Actual use is strongly discouraged of course ;) * Actual use is strongly discouraged of course ;)
*/ */
#if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__) && _ _GNUC__ >= 2 #if (defined (__i386__) || defined (__x86_64__)) && defined (__GNUC__) && _ _GNUC__ >= 2
# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $03 "); }G_STMT_END # define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $0 3"); }G_STMT_END
#elif (defined (_MSC_VER) || defined (__DMC__)) && defined (_M_IX86) #elif (defined (_MSC_VER) || defined (__DMC__)) && defined (_M_IX86)
# define G_BREAKPOINT() G_STMT_START{ __asm int 3h }G_STMT_END # define G_BREAKPOINT() G_STMT_START{ __asm int 3h }G_STMT_END
#elif defined (_MSC_VER) #elif defined (_MSC_VER)
# define G_BREAKPOINT() G_STMT_START{ __debugbreak(); }G_STMT_END # define G_BREAKPOINT() G_STMT_START{ __debugbreak(); }G_STMT_END
#elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __G NUC__ >= 2 #elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __G NUC__ >= 2
# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); # define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt");
}G_STMT_END }G_STMT_END
#else /* !__i386__ && !__alpha__ */ #else /* !__i386__ && !__alpha__ */
# define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END # define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END
#endif /* __i386__ */ #endif /* __i386__ */
G_END_DECLS G_END_DECLS
#endif /* __G_BACKTRACE_H__ */ #endif /* __G_BACKTRACE_H__ */
 End of changes. 4 change blocks. 
8 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/