Skip to content
Snippets Groups Projects
Commit 27743a2b authored by dtc's avatar dtc
Browse files

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.
parent eefb15e9
No related branches found
No related tags found
No related merge requests found
...@@ -190,12 +190,9 @@ sigtrap_handler(HANDLER_ARGS) ...@@ -190,12 +190,9 @@ sigtrap_handler(HANDLER_ARGS)
__setfpucw(contextstruct.fpstate->cw); __setfpucw(contextstruct.fpstate->cw);
#endif #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)); /*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)); DPRINTF(0,(stderr,"sigtrap(%d %d %x)\n",signal,code,context));
sigsetmask(context->sc_mask);
SAVE_CONTEXT(); SAVE_CONTEXT();
/* this is just for info in case monitor wants to print an approx */ /* this is just for info in case monitor wants to print an approx */
current_control_stack_pointer = (unsigned long*)context->sc_sp; current_control_stack_pointer = (unsigned long*)context->sc_sp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment