syscalls: Remove get_stack_trace syscall again.

This reverts the other half of b959d46dbd.
This commit is contained in:
Michael Lotz 2015-04-11 23:36:20 +02:00
parent 3dfbe1a12d
commit 8f9d4cad45
2 changed files with 0 additions and 21 deletions

View File

@ -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);

View File

@ -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;
}