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
This commit is contained in:
Ingo Weinhold 2010-01-31 15:52:10 +00:00
parent 9e4087372b
commit 23b7090f09

View File

@ -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;