X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-arch.c;h=c3f92682394239361971de43ccd420b1470a5fa4;hb=6cb4f9ea3f4e35a5a8e75922833e14575ae92180;hp=9d76b932c5027a3aa94dd6c5d6e81ffff61ac7f4;hpb=5de74c72e5a9522c7fdd3dbb31a39641e9de8877;p=sbcl.git diff --git a/src/runtime/x86-arch.c b/src/runtime/x86-arch.c index 9d76b93..c3f9268 100644 --- a/src/runtime/x86-arch.c +++ b/src/runtime/x86-arch.c @@ -224,7 +224,7 @@ sigtrap_handler(int signal, siginfo_t *info, void *void_context) *(single_stepping-2) = single_step_save2; *(single_stepping-1) = single_step_save3; #else - *context_eflags_addr(context) ^= 0x100; + *context_eflags_addr(context) &= ~0x100; #endif /* Re-install the breakpoint if possible. */ if (*os_context_pc_addr(context) == (int)single_stepping + 1) { @@ -254,6 +254,18 @@ sigtrap_handler(int signal, siginfo_t *info, void *void_context) os_restore_fp_control(context); #endif + +#ifdef LISP_FEATURE_SUNOS + /* For some reason the breakpoints that :ENCAPSULATE NIL tracing sets up + * cause a trace trap (i.e. processor single-stepping trap) on the following + * instruction on Solaris 10/x86. -- JES, 2006-04-07 + */ + if (info->si_code == TRAP_TRACE) { + lose("foo"); + return; + } +#endif + /* On entry %eip points just after the INT3 byte and aims at the * 'kind' value (eg trap_Cerror). For error-trap and Cerror-trap a * number of bytes will follow, the first is the length of the byte