From 8c0c2e2be7c93b0e6ce9879dcb6aaa557b5b92d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Tue, 29 Aug 2023 22:32:29 +0200 Subject: [PATCH] [NTOS:KDBG] Temporarily HACK-remove the duplicated kdb:> when displaying the interactive KDBG prompt. --- ntoskrnl/kdbg/kdb_cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntoskrnl/kdbg/kdb_cli.c b/ntoskrnl/kdbg/kdb_cli.c index cc7aece3d9e..50d484accd1 100644 --- a/ntoskrnl/kdbg/kdb_cli.c +++ b/ntoskrnl/kdbg/kdb_cli.c @@ -3299,7 +3299,8 @@ KdbpCliMainLoop( * Repeat the last one if the user pressed Enter. * This reduces the risk of RSI when single-stepping! */ - CmdLen = KdbPrompt(KdbPromptStr.Buffer, Command, sizeof(Command)); + // TEMP HACK! Issue an empty string instead of duplicating "kdb:>" + CmdLen = KdbPrompt(/*KdbPromptStr.Buffer*/"", Command, sizeof(Command)); if (CmdLen == 0) { /* Nothing received but the user didn't press Enter, retry */