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:
@@ -822,6 +822,9 @@ is_calling(struct thread *thread, addr_t eip, const char *pattern,
|
|||||||
if (pattern == NULL)
|
if (pattern == NULL)
|
||||||
return eip >= start && eip < end;
|
return eip >= start && eip < end;
|
||||||
|
|
||||||
|
if (!IS_KERNEL_ADDRESS(eip))
|
||||||
|
return false;
|
||||||
|
|
||||||
const char *symbol;
|
const char *symbol;
|
||||||
if (lookup_symbol(thread, eip, NULL, &symbol, NULL, NULL) != B_OK)
|
if (lookup_symbol(thread, eip, NULL, &symbol, NULL, NULL) != B_OK)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user