Skip to content
Snippets Groups Projects
Commit a0f96070 authored by wlott's avatar wlott
Browse files

Added function-end breapoint stuff. Fixed minor problems introduced with

sunos seperation.
parent d6facc34
No related branches found
No related tags found
No related merge requests found
......@@ -54,12 +54,21 @@ static void sigtrap_handler(signal, code, context)
undo_fake_foreign_function_call(context);
break;
case trap_FunctionEndBreakpoint:
sigsetmask(context->sc_mask);
fake_foreign_function_call(context);
handle_function_end_breakpoint(signal, code, context);
undo_fake_foreign_function_call(context);
break;
default:
interrupt_handle_now(signal, code, context);
break;
}
}
#define FIXNUM_VALUE(lispobj) (((int)lispobj)>>2)
static void sigfpe_handler(signal, code, context)
int signal, code;
struct sigcontext *context;
......@@ -130,5 +139,5 @@ struct sigcontext *context;
void arch_install_interrupt_handlers()
{
interrupt_install_low_level_handler(SIGTRAP,sigtrap_handler);
interrupt_install_low_level_handler(SIGEMT,sigemt_handler);
interrupt_install_low_level_handler(SIGEMT,sigfpe_handler);
}
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