[KDGDB] Break and ignore when being prompted.

This commit is contained in:
Jérôme Gardou 2021-02-10 12:26:31 +01:00
parent 80f8beeeee
commit 10379811c0

View file

@ -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;
}