X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbreakpoint.c;h=48f8aede013f971bb785bff717831c5d613bdb50;hb=ea36d3d79b9dfe3598faca5e267efd5980b94d4a;hp=9e95a8a4d00070eb610d01ae6b955b82c1ffe590;hpb=81cfdf526490d642c73602ebac9bcacb8af644e1;p=sbcl.git diff --git a/src/runtime/breakpoint.c b/src/runtime/breakpoint.c index 9e95a8a..48f8aed 100644 --- a/src/runtime/breakpoint.c +++ b/src/runtime/breakpoint.c @@ -54,7 +54,15 @@ void breakpoint_remove(lispobj code_obj, int pc_offset, void breakpoint_do_displaced_inst(os_context_t* context, unsigned long orig_inst) { -#if !defined(hpux) && !defined(irix) && !defined(__i386__) + /* on platforms with sigreturn(), we go directly back from + * arch_do_displaced_inst() to lisp code, so we need to clean up + * our bindings now. (side note: I'd love to know in exactly what + * scenario the speed of breakpoint handling is critical enough to + * justify this maintenance mess) + * + * -dan 2001.08.09 */ + +#if !(defined(hpux) || defined(irix) || defined(__i386__) || defined(alpha)) undo_fake_foreign_function_call(context); #endif arch_do_displaced_inst(context, orig_inst); @@ -122,7 +130,10 @@ static int compute_offset(os_context_t *context, lispobj code) } } } - +/* FIXME: I can see no really good reason these couldn't be merged, but haven't + * tried. The sigprocmask() call would work just as well on alpha as it + * presumably does on x86 -dan 2001.08.10 + */ #ifndef __i386__ void handle_breakpoint(int signal, siginfo_t *info, os_context_t *context) {