Author: bonefish Date: 2010-01-31 16:52:10 +0100 (Sun, 31 Jan 2010) New Revision: 35359 Changeset: http://dev.haiku-os.org/changeset/35359/haiku Modified: haiku/trunk/src/system/kernel/arch/x86/arch_debug.cpp Log: is_calling(): Skip non-kernel addresses. Fixes the often not working "calling" command. Modified: haiku/trunk/src/system/kernel/arch/x86/arch_debug.cpp =================================================================== --- haiku/trunk/src/system/kernel/arch/x86/arch_debug.cpp 2010-01-31 15:04:40 UTC (rev 35358) +++ haiku/trunk/src/system/kernel/arch/x86/arch_debug.cpp 2010-01-31 15:52:10 UTC (rev 35359) @@ -822,6 +822,9 @@ 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;