* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24724 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-04-01 18:21:47 +00:00
parent 3dacc609c5
commit ebe5326de3
1 changed files with 3 additions and 5 deletions

View File

@ -547,13 +547,11 @@ arch_debug_contains_call(struct thread *thread, const char *symbol,
else
ebp = thread->arch_info.current_stack.esp[2];
bool onKernelStack = true;
for (;;) {
onKernelStack = onKernelStack
&& is_kernel_stack_address(thread, ebp);
if (!is_kernel_stack_address(thread, ebp))
break;
if (onKernelStack && is_iframe(thread, ebp)) {
if (is_iframe(thread, ebp)) {
struct iframe *frame = (struct iframe *)ebp;
if (is_calling(thread, frame->eip, symbol, start, end))