X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbreakpoint.c;h=4b3ee03f650eb6ce06c58f7d7158c7a289b2788f;hb=d970a7aa8be2cfdc15c340382b99ef9db4428df3;hp=cf829ad16d597a562b24bf7d785f0db652a40df7;hpb=79cc569a97e444389350ea3f5b1017374fe16bec;p=sbcl.git diff --git a/src/runtime/breakpoint.c b/src/runtime/breakpoint.c index cf829ad..4b3ee03 100644 --- a/src/runtime/breakpoint.c +++ b/src/runtime/breakpoint.c @@ -134,10 +134,11 @@ static long compute_offset(os_context_t *context, lispobj code) void handle_breakpoint(int signal, siginfo_t* info, os_context_t *context) { - lispobj code, context_sap = alloc_sap(context); + lispobj code, context_sap; fake_foreign_function_call(context); + context_sap = alloc_sap(context); code = find_code(context); /* Don't disallow recursive breakpoint traps. Otherwise, we can't @@ -186,11 +187,12 @@ void *handle_fun_end_breakpoint(int signal, siginfo_t *info, void *handle_fun_end_breakpoint(int signal, siginfo_t *info, os_context_t *context) { - lispobj code, context_sap = alloc_sap(context); + lispobj code, context_sap; struct code *codeptr; fake_foreign_function_call(context); + context_sap = alloc_sap(context); code = find_code(context); codeptr = (struct code *)native_pointer(code);