Exclude OSF from alpha definition of G_BREAKPOINT(), since the assembler

Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gbacktrace.h: Exclude OSF from alpha definition
        of G_BREAKPOINT(), since the assembler apparently
        doesn't support bpt. (#77852, Gareth Pierce) [from stable]
This commit is contained in:
Owen Taylor 2002-05-06 20:08:54 +00:00 committed by Owen Taylor
parent 26a6730547
commit 0522bb588b
8 changed files with 44 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -1,3 +1,9 @@
Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
* glib/gbacktrace.h: Exclude OSF from alpha definition
of G_BREAKPOINT(), since the assembler apparently
doesn't support bpt. (#77852, Gareth Pierce) [from stable]
Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
[ merged from stable ]

View File

@ -44,13 +44,13 @@ 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.
* Actual use is strongly deprecated of course ;)
* Actual use is strongly discouraged of course ;)
*/
#if defined (__i386__) && 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
#elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2
#elif defined (__alpha__) && !defined(__osf__) && defined (__GNUC__) && __GNUC__ >= 2
# define G_BREAKPOINT() G_STMT_START{ __asm__ __volatile__ ("bpt"); }G_STMT_END
#else /* !__i386__ && !__alpha__ */
# define G_BREAKPOINT() G_STMT_START{ raise (SIGTRAP); }G_STMT_END