X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fbacktrace.c;h=1d9b506de84e3723f158a13548aefb966bca605b;hb=cbc0ad89d5bb05c1bfa2c712bc8a0e2bbe7b5673;hp=996357e04415debffa50d552e05fcae53c6e91f0;hpb=188be44efce85c30e1a7d8a7f580a9f8a61bfcfc;p=sbcl.git diff --git a/src/runtime/backtrace.c b/src/runtime/backtrace.c index 996357e..1d9b506 100644 --- a/src/runtime/backtrace.c +++ b/src/runtime/backtrace.c @@ -110,13 +110,13 @@ cs_valid_pointer_p(struct call_frame *pointer) { struct thread *thread=arch_os_get_current_thread(); return (((char *) thread->control_stack_start <= (char *) pointer) && - ((char *) pointer < (char *) current_control_stack_pointer)); + ((char *) pointer < (char *) access_control_stack_pointer(thread))); } static void call_info_from_lisp_state(struct call_info *info) { - info->frame = (struct call_frame *)current_control_frame_pointer; + info->frame = (struct call_frame *)access_control_frame_pointer(arch_os_get_current_thread()); info->interrupted = 0; info->code = NULL; info->lra = 0; @@ -214,7 +214,7 @@ previous_info(struct call_info *info) } void -backtrace(int nframes) +lisp_backtrace(int nframes) { struct call_info info; @@ -523,7 +523,7 @@ describe_thread_state(void) printf("Pending handler = %p\n", data->pending_handler); } -/* This function has been split from backtrace() to enable Lisp +/* This function has been split from lisp_backtrace() to enable Lisp * backtraces from gdb with call backtrace_from_fp(...). Useful for * example when debugging threading deadlocks. */ @@ -571,7 +571,7 @@ backtrace_from_fp(void *fp, int nframes) } void -backtrace(int nframes) +lisp_backtrace(int nframes) { void *fp;