From 27743a2b94cbd67c0d12464f74d5803d628e351d Mon Sep 17 00:00:00 2001 From: dtc <dtc> Date: Fri, 21 Nov 1997 12:19:21 +0000 Subject: [PATCH] Don't re-enable interrupts in the sigtrap handler, but delay it until the breakpoint functions have allocated the context SAP object so this allocation is performed without interrupt. --- lisp/x86-arch.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lisp/x86-arch.c b/lisp/x86-arch.c index 51933427e..4762c0a30 100644 --- a/lisp/x86-arch.c +++ b/lisp/x86-arch.c @@ -190,12 +190,9 @@ sigtrap_handler(HANDLER_ARGS) __setfpucw(contextstruct.fpstate->cw); #endif - /* Don't disallow recursive breakpoint traps. Otherwise, we can't */ - /* use debugger breakpoints anywhere in here. */ /*fprintf(stderr,"x86sigtrap: %8x %x\n", context->sc_pc, *(char*)(context->sc_pc-1)); */ DPRINTF(0,(stderr,"sigtrap(%d %d %x)\n",signal,code,context)); - sigsetmask(context->sc_mask); SAVE_CONTEXT(); /* this is just for info in case monitor wants to print an approx */ current_control_stack_pointer = (unsigned long*)context->sc_sp; -- GitLab