diff --git a/headers/private/system/syscalls.h b/headers/private/system/syscalls.h index 8cd608c02e..51a52138c1 100644 --- a/headers/private/system/syscalls.h +++ b/headers/private/system/syscalls.h @@ -492,9 +492,6 @@ extern status_t _kern_system_profiler_stop(); extern status_t _kern_system_profiler_recorded( struct system_profiler_parameters* parameters); -extern ssize_t _kern_get_stack_trace(size_t addressCount, - addr_t* adresses); - /* atomic_* ops (needed for CPUs that don't support them directly) */ #ifdef ATOMIC_FUNCS_ARE_SYSCALLS extern void _kern_atomic_set(int32 *value, int32 newValue); diff --git a/src/system/kernel/debug/user_debugger.cpp b/src/system/kernel/debug/user_debugger.cpp index bbc30fb496..a4eb75ebc3 100644 --- a/src/system/kernel/debug/user_debugger.cpp +++ b/src/system/kernel/debug/user_debugger.cpp @@ -3000,21 +3000,3 @@ _user_clear_debugger_breakpoint(void *address, bool watchpoint) return result; } - - -ssize_t -_user_get_stack_trace(size_t addressCount, addr_t* userReturnAddresses) -{ - addr_t returnAddresses[addressCount]; - int32 readCount = arch_debug_get_stack_trace(returnAddresses, addressCount, - 1, 0, STACK_TRACE_KERNEL | STACK_TRACE_USER); - if (readCount < 0) - return readCount; - - status_t copyResult = user_memcpy(userReturnAddresses, returnAddresses, - readCount * sizeof(addr_t)); - if (copyResult != B_OK) - return copyResult; - - return readCount; -}