mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 17:26:17 +01:00
Nah, don't use FatalAppExit(). abort() is better.
This commit is contained in:
parent
a4bfec4f1d
commit
b45420bca8
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
||||||
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
||||||
debugged. Suggestion by Ulf Lamping. Otherwise use FatalAppExit().
|
debugged. Suggestion by Ulf Lamping.
|
||||||
|
|
||||||
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
||||||
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
||||||
debugged. Suggestion by Ulf Lamping. Otherwise use FatalAppExit().
|
debugged. Suggestion by Ulf Lamping.
|
||||||
|
|
||||||
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
||||||
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
||||||
debugged. Suggestion by Ulf Lamping. Otherwise use FatalAppExit().
|
debugged. Suggestion by Ulf Lamping.
|
||||||
|
|
||||||
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
* glib/gmessages.c (g_logv): For fatal messages on Win32, use
|
||||||
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
|
||||||
debugged. Suggestion by Ulf Lamping. Otherwise use FatalAppExit().
|
debugged. Suggestion by Ulf Lamping.
|
||||||
|
|
||||||
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
2005-01-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@ -476,17 +476,11 @@ g_logv (const gchar *log_domain,
|
|||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
gchar *locale_msg = g_locale_from_utf8 (fatal_msg_buf, -1, NULL, NULL, NULL);
|
gchar *locale_msg = g_locale_from_utf8 (fatal_msg_buf, -1, NULL, NULL, NULL);
|
||||||
|
|
||||||
if (IsDebuggerPresent () && !(test_level & G_LOG_FLAG_RECURSION))
|
|
||||||
{
|
|
||||||
MessageBox (NULL, locale_msg, NULL,
|
MessageBox (NULL, locale_msg, NULL,
|
||||||
MB_ICONERROR|MB_SETFOREGROUND);
|
MB_ICONERROR|MB_SETFOREGROUND);
|
||||||
|
if (IsDebuggerPresent () && !(test_level & G_LOG_FLAG_RECURSION))
|
||||||
G_BREAKPOINT ();
|
G_BREAKPOINT ();
|
||||||
}
|
|
||||||
|
|
||||||
FatalAppExit (0, locale_msg);
|
|
||||||
/* In case somebody runs a debug Windows and chooses to
|
|
||||||
* continue, don't let her.
|
|
||||||
*/
|
|
||||||
abort ();
|
abort ();
|
||||||
#else
|
#else
|
||||||
#if defined (G_ENABLE_DEBUG) && defined (SIGTRAP)
|
#if defined (G_ENABLE_DEBUG) && defined (SIGTRAP)
|
||||||
|
Loading…
Reference in New Issue
Block a user