From 52192f19d65665ffd5df02caafbcd6b2cecfa1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 14 Oct 2024 23:36:20 +0200 Subject: [PATCH] [NTOS:KDBG] For SYSREG2: HACK emission of a 'bt' command when entering the debugger CORE-19807 --- ntoskrnl/kdbg/kdb_cli.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ntoskrnl/kdbg/kdb_cli.c b/ntoskrnl/kdbg/kdb_cli.c index 852326cff22..b4794dca739 100644 --- a/ntoskrnl/kdbg/kdb_cli.c +++ b/ntoskrnl/kdbg/kdb_cli.c @@ -3278,6 +3278,12 @@ KdbpCliMainLoop( static CHAR Command[1024]; static CHAR LastCommand[1024] = ""; +// FIXME HACK: SYSREG SUPPORT CORE-19807 -- Emit a backtrace. +// TODO: Remove once SYSREG "bt" command emission is fixed! +#if 1 + KdbpDoCommand("bt"); +#endif + if (EnteredOnSingleStep) { if (!KdbSymPrintAddress((PVOID)KeGetContextPc(KdbCurrentTrapFrame), KdbCurrentTrapFrame))