Don't search module list for kernel addresses.

This commit is contained in:
Bartosz Taudul 2020-02-24 23:04:10 +01:00
parent ece32b47df
commit 85ffe0ea04

View File

@ -149,6 +149,13 @@ const char* DecodeCallstackPtrFast( uint64_t ptr )
static void GetModuleName( uint64_t addr, char* buf, ULONG& len ) static void GetModuleName( uint64_t addr, char* buf, ULONG& len )
{ {
if( ( addr & 0x8000000000000000 ) != 0 )
{
memcpy( buf, "[kernel]", 9 );
len = 8;
return;
}
#ifndef __CYGWIN__ #ifndef __CYGWIN__
for( auto& v : *s_modCache ) for( auto& v : *s_modCache )
{ {