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:
Ingo Weinhold
2010-06-06 13:03:17 +00:00
parent 0d319095f4
commit 48f2523d15
+2 -2
View File
@@ -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;
}