From df72bcd06c64672f1943c487a8b0275e9bcc653f Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 14 Apr 2023 13:07:11 +0300 Subject: [PATCH] [NTOS:KDBG] Only load symbols on x86 Symbol loading leads to a hang on x64 boot in 2nd stage and KDBG symbols don't work on x64 anyway. --- ntoskrnl/kdbg/kdb_symbols.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/kdbg/kdb_symbols.c b/ntoskrnl/kdbg/kdb_symbols.c index 8cd897f339d..11ccd572219 100644 --- a/ntoskrnl/kdbg/kdb_symbols.c +++ b/ntoskrnl/kdbg/kdb_symbols.c @@ -355,8 +355,10 @@ KdbSymInit( SHORT Found = FALSE; CHAR YesNo; - /* By default, load symbols in DBG builds, but not in REL builds */ -#if DBG + /* By default, load symbols in DBG builds, but not in REL builds + or anything other than x86, because they only work on x86 + and can cause the system to hang on x64. */ +#if DBG && defined(_M_IX86) LoadSymbols = TRUE; #else LoadSymbols = FALSE;