Loading...
--- Libc/Libc-1725.40.4/gen/backtrace.c
+++ Libc/Libc-1353.100.2/gen/backtrace.c
@@ -30,35 +30,16 @@
 #include <stdlib.h>
 #include <uuid/uuid.h>
 #include "execinfo.h"
-#include "libc_private.h"
 
 extern void _thread_stack_pcs(vm_address_t *buffer, unsigned max,
 		unsigned *nb, unsigned skip, void *startfp);
 
-static backtrace_get_pcs_func_t backtrace_get_pcs_func = _thread_stack_pcs;
-
-void backtrace_set_pcs_func(backtrace_get_pcs_func_t func) {
-	backtrace_get_pcs_func = func ? func : _thread_stack_pcs;
-}
-
 int backtrace(void** buffer, int size) {
 	unsigned int num_frames;
-	backtrace_get_pcs_func((vm_address_t*)buffer, size, &num_frames, 1, NULL);
+	_thread_stack_pcs((vm_address_t*)buffer, size, &num_frames, 1, NULL);
 	while (num_frames >= 1 && buffer[num_frames-1] == NULL) num_frames -= 1;
 	return num_frames;
 }
-
-extern unsigned int _thread_stack_async_pcs(vm_address_t *buffer, unsigned max,
-		unsigned *nb, unsigned skip, void *startfp);
-
-size_t backtrace_async(void** buffer, size_t size, uint32_t *task_id_ptr) {
-	unsigned int num_frames;
-	uint32_t task_id = _thread_stack_async_pcs((vm_address_t*)buffer, size, &num_frames, 1, NULL);
-	while (num_frames >= 1 && buffer[num_frames-1] == NULL) num_frames -= 1;
-	if (task_id_ptr) *task_id_ptr = task_id;
-	return num_frames;
-}
-
 
 int
 backtrace_from_fp(void *startfp, void **buffer, int size)