ia32's G_BREAKPOINT() implementation works on amd64 too. Enable it.

Fri Mar 12 15:30:58 2004  Manish Singh  <yosh@gimp.org>

        * glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
        amd64 too. Enable it.
This commit is contained in:
Manish Singh 2004-03-12 23:31:23 +00:00 committed by Manish Singh
parent 89242d758b
commit d8ba1394da
7 changed files with 32 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -1,3 +1,8 @@
Fri Mar 12 15:30:58 2004 Manish Singh <yosh@gimp.org>
* glib/gbacktrace.h: ia32's G_BREAKPOINT() implementation works on
amd64 too. Enable it.
Fri Mar 12 15:21:22 2004 Manish Singh <yosh@gimp.org>
* glib/gatomic.c: Non-optimizing compile fails for two asm

View File

@ -43,10 +43,10 @@ G_BEGIN_DECLS
void g_on_error_query (const gchar *prg_name);
void g_on_error_stack_trace (const gchar *prg_name);
/* Hacker macro to place breakpoints for elected machines.
/* Hacker macro to place breakpoints for selected machines.
* Actual use is strongly discouraged of course ;)
*/
#if defined (__i386__) && 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
#elif defined (_MSC_VER) && defined (_M_IX86)
# define G_BREAKPOINT() G_STMT_START{ __asm int 3h }G_STMT_END