Skip to content

Commit 76d35dd

Browse files
committed
[NTOS:KD64] KdInitSystem(): Poll for break-in on symbol load *ONLY* at boot-time (reactos#7539)
I.e. when LoaderBlock != NULL and we have loaded the initial hal and ntoskrnl symbols. KdBreakAfterSymbolLoad is then checked for when the other boot symbols have been loaded by ex/init.c!ExpLoadBootSymbols(), invoked by ExpInitializeExecutive().
1 parent 2995806 commit 76d35dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ntoskrnl/kd64/kdinit.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ KdInitSystem(
208208
KdVersionBlock.Unused[0] = 0;
209209

210210
/* Link us in the KPCR */
211-
KeGetPcr()->KdVersionBlock = &KdVersionBlock;
211+
KeGetPcr()->KdVersionBlock = &KdVersionBlock;
212212
}
213213

214214
/* Check if we have a loader block */
@@ -445,10 +445,11 @@ KdInitSystem(
445445
NextEntry = NextEntry->Flink;
446446
i++;
447447
}
448-
}
449448

450-
/* Check for incoming breakin and break on symbol load if we have it */
451-
KdBreakAfterSymbolLoad = KdPollBreakIn();
449+
/* Check for incoming break-in and break on symbol load
450+
* if requested, see ex/init.c!ExpLoadBootSymbols() */
451+
KdBreakAfterSymbolLoad = KdPollBreakIn();
452+
}
452453
}
453454
else
454455
{

0 commit comments

Comments
 (0)