From d4ad716a05a432883f4b91115b57e3835dc24cb6 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 15 Sep 2008 22:19:38 +0000 Subject: [PATCH] Define G_BREAKPOINT() also for 64-bit MSVC, using the __debugbreak() 2008-09-16 Tor Lillqvist * glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC, using the __debugbreak() intrinsic. svn path=/trunk/; revision=7495 --- ChangeLog | 5 +++++ glib/gbacktrace.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b8b7002..52014f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-16 Tor Lillqvist + + * glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC, + using the __debugbreak() intrinsic. + 2008-09-15 Behdad Esfahbod * configure.in: Fix description of module shared library suffix. diff --git a/glib/gbacktrace.h b/glib/gbacktrace.h index 740ee55..274cdac 100644 --- a/glib/gbacktrace.h +++ b/glib/gbacktrace.h @@ -54,6 +54,8 @@ void g_on_error_stack_trace (const gchar *prg_name); # define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("int $03"); }G_STMT_END #elif (defined (_MSC_VER) || defined (__DMC__)) && defined (_M_IX86) # define G_BREAKPOINT() G_STMT_START{ __asm int 3h }G_STMT_END +#elif defined (_MSC_VER) +# define G_BREAKPOINT() G_STMT_START{ __debugbreak(); }G_STMT_END #elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __GNUC__ >= 2 # define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END #else /* !__i386__ && !__alpha__ */ -- 2.7.4