Patch by Andreas Faerber: Implemented arch_debug_get_caller().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37032 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -279,8 +279,8 @@ arch_debug_contains_call(struct thread *thread, const char *symbol,
|
||||
void *
|
||||
arch_debug_get_caller(void)
|
||||
{
|
||||
// TODO: implement me
|
||||
return (void *)&arch_debug_get_caller;
|
||||
struct stack_frame *frame = get_current_stack_frame()->previous;
|
||||
return (void *)frame->previous->return_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user