reactos/ntoskrnl
Hermès Bélusca-Maïto d489f1a170
[NTOS:KD] Supplement minimal handling in KdSend/ReceivePacket when no kernel debugger is present.
CORE-20107

Improve the minimal handling done in the fall-back KdSend/ReceivePacket()
routines when they are invoked by KD64 (in Release build).

Part of my `kdbg_tests_kdio_split` branch for splitting kd/kdio.c
into a separate KD dll.

KdSendPacket:
- Silently ignore PACKET_TYPE_KD_STATE_CHANGE32/64 DbgKdLoadSymbolsStateChange notification.
- Partially manage and log the unhandled PACKET_TYPE_KD_STATE_CHANGE DbgKdExceptionStateChange notification.
- Log other unhandled PACKET_TYPE_KD_STATE_CHANGE32/64 and PACKET_TYPE_KD_STATE_MANIPULATE notifications.

When KdSendPacket receives the DbgKdExceptionStateChange notification,
it cannot handle it (no debugger is there!). However, we need to claim
the debugger to be present, so that its KD64 caller: KdpSendWaitContinue(),
can call back KdReceivePacket(PACKET_TYPE_KD_STATE_MANIPULATE), which,
in turn, informs KD that the exception cannot be handled, by returning
a failure code in the ManipulateState's ContinueStatus.

During bugchecks, this allows KiBugCheckDebugBreak() to not loop infinitely,
but instead fall back into calling HalHaltSystem() to halt the computer.
2025-04-19 20:01:10 +02:00
..
cache [NTOS:MM] Add more checks for MEMORY_AREA_OWNED_BY_ARM3 2025-04-17 22:22:08 +00:00
cc [NTOSKRNL] Add missing \n to DPRINT() calls (#6012) 2025-03-26 10:23:15 +01:00
config [NTOS:OB] Allow ObpCaseInsensitive to be configured via registry (#7751) 2025-03-11 19:15:02 +01:00
dbgk [NTOSKRNL] Regroup the pool allocation tags in one dedicated place 2021-12-27 18:57:03 +01:00
ex [REACTOS] Usage improvements for some RtlFindMessage invocations (#6023) 2025-04-08 20:19:54 +02:00
fsrtl [REACTOS] Refresh old URLs (#7632) 2025-01-28 13:36:45 +09:00
fstub [NTOS:FSTUB] Pack the MASTER_BOOT_RECORD structure (#6416) 2024-02-08 01:02:19 +03:00
inbv [REACTOS] Use the RT_* resource type defines where possible (#6023) 2025-04-08 20:21:07 +02:00
include [NTOS][RTL] Remove unused deprecated ReactOS-only DbgBreakPointNoBugCheck() 2025-04-19 20:01:06 +02:00
io [NTOS] Fix MSVC warnings 2025-04-18 17:28:49 +00:00
kd [NTOS:KD] Supplement minimal handling in KdSend/ReceivePacket when no kernel debugger is present. 2025-04-19 20:01:10 +02:00
kd64 [NTOS:KD64] Fix freezes on first chance exception when KDBG is enabled and KdIgnoreUmExceptions is TRUE 2025-01-28 22:00:55 +01:00
kdbg [NTOS:KDBG] Add back 'cregs' command 2025-01-29 18:25:24 +01:00
ke [REACTOS] Use the RT_* resource type defines where possible (#6023) 2025-04-08 20:21:07 +02:00
lpc [NTOS:LPC] Fix input parameter for ProbeAndCaptureUnicodeString (#5815) 2023-10-23 18:18:45 +02:00
mm [NTOS:MM] Remove one more instance of MmLocateMemoryAreaByAddress 2025-04-17 22:22:08 +00:00
ntkrnlmp [NTOS] Build mproc.c _only_ for MP ntoskrnl, not for single-processor 2025-04-04 12:51:29 +02:00
ob [NTOS] Fix MSVC warnings 2025-04-18 17:28:49 +00:00
po [NTOS:PO] Update a comment (#6443) 2024-09-08 02:29:37 +02:00
ps [NTOS:MM:PS] Little fixes for NTDLL loading (#7707) 2025-03-03 20:36:21 +01:00
rtl [AVRF] Hook up debug functions, add noisy stub for AVrfpGetStackTraceAddress 2025-03-25 16:23:39 +01:00
se [NTOSKRNL] Add missing \n to DPRINT() calls (#6012) 2025-03-26 10:23:15 +01:00
tests [REACTOS] Add missing line breaks at end of file 2024-10-06 10:47:11 +03:00
vdm [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
vf
wmi [REACTOS] Fix traces with missing arguments. 2021-11-21 12:57:35 -05:00
CMakeLists.txt [NTOS] Build mproc.c _only_ for MP ntoskrnl, not for single-processor 2025-04-04 12:51:29 +02:00
guid.c [NTOSKRNL] Rewrite IoAssignDriveLetters to make NT5 compliant 2019-10-21 18:28:40 +02:00
KrnlFun.c
ntdll.S
ntos.cmake [NTOS] Build mproc.c _only_ for MP ntoskrnl, not for single-processor 2025-04-04 12:51:29 +02:00
ntoskrnl.rc [NTOS:INBV] Isolate the bitmap resources pertaining to the boot theme/animation into their resource sub-file. 2023-12-24 22:39:36 +01:00
ntoskrnl.spec [KERNEL32][NTDLL][NTOS][WIN32K] Fix and sync the exports for RtlUnwindEx and RtlVirtualUnwind (#7749) 2025-03-11 18:59:22 +01:00
sysfuncs.lst