From 23b7090f0945750dc51d90c01cc8d424b98284ce Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 31 Jan 2010 15:52:10 +0000 Subject: [PATCH] is_calling(): Skip non-kernel addresses. Fixes the often not working "calling" command. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35359 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/kernel/arch/x86/arch_debug.cpp b/src/system/kernel/arch/x86/arch_debug.cpp index 217eba280e..7e69ccf7d6 100644 --- a/src/system/kernel/arch/x86/arch_debug.cpp +++ b/src/system/kernel/arch/x86/arch_debug.cpp @@ -822,6 +822,9 @@ is_calling(struct thread *thread, addr_t eip, const char *pattern, if (pattern == NULL) return eip >= start && eip < end; + if (!IS_KERNEL_ADDRESS(eip)) + return false; + const char *symbol; if (lookup_symbol(thread, eip, NULL, &symbol, NULL, NULL) != B_OK) return false;