mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 12:38:51 +01:00
syscalls: Remove get_stack_trace syscall again.
This reverts the other half of b959d46dbd
.
This commit is contained in:
parent
3dfbe1a12d
commit
8f9d4cad45
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user