https://git.reactos.org/?p=reactos.git;a=commitdiff;h=10379811c0e871e2829c7…
commit 10379811c0e871e2829c76da96dabadbb1c9718b
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Feb 10 12:26:31 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Tue Mar 30 17:20:57 2021 +0200
[KDGDB] Break and ignore when being prompted.
---
drivers/base/kdgdb/kdpacket.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/base/kdgdb/kdpacket.c b/drivers/base/kdgdb/kdpacket.c
index fe776eef55e..dfe4ee7f261 100644
--- a/drivers/base/kdgdb/kdpacket.c
+++ b/drivers/base/kdgdb/kdpacket.c
@@ -378,10 +378,12 @@ KdReceivePacket(
if (PacketType == PACKET_TYPE_KD_DEBUG_IO)
{
+ static BOOLEAN ignore = 0;
KDDBGPRINT("Debug prompt.\n");
- /* HACK ! RtlAssert asks for (boipt), always say "o" --> break once.
*/
+ /* HACK ! Debug prompt asks for break or ignore. First break, then ignore. */
MessageData->Length = 1;
- MessageData->Buffer[0] = 'o';
+ MessageData->Buffer[0] = ignore ? 'i' : 'b';
+ ignore = !ignore;
return KdPacketReceived;
}