https://git.reactos.org/?p=reactos.git;a=commitdiff;h=52192f19d65665ffd5df0…
commit 52192f19d65665ffd5df02caafbcd6b2cecfa1cc
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Mon Oct 14 23:36:20 2024 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Oct 14 23:37:22 2024 +0200
[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))