reactos/ntoskrnl/kdbg
Hermès Bélusca-Maïto b15963abb8
[NTOS:KDBG] Reintroduce the capability of KdbpCliInit() to interpret the KDBinit file (#4917)
Addendum to commit baa47fa5e.

Similarly to what was originally done, have KdbpCliInterpretInitFile()
parse the KDBinit file by breaking back into the debugger.
But contrary to before, replace the deprecated call to KdbEnter() by
a standard DbgBreakPointWithStatus(DBG_STATUS_CONTROL_C) . This allows
KdbEnterDebuggerException() to do the KdbpCliInterpretInitFile() call.

Additional fixes and improvements:

- Run KdbpCliInterpretInitFile() in full KDBG environment (interrupts
  disabled, modified IRQL, own stack), like the usual interactive loop.

- The KDBinit data buffer must be in non-paged pool.

- Demote the "Could not open KDBinit" error to a DPRINT, so that it
  doesn't pollute the debug log when the KDBG init function is called
  early (before the storage stack is initialized), or if the file
  doesn't exist -- since this is an optional feature.
2024-10-14 22:51:54 +02:00
..
amd64
i386 [NTOS:KDBG] Use local KdbPrintf function for DPRINT1 instead of DbgPrint... 2023-04-12 19:30:56 +02:00
debug.h [NTOS:KDBG] Use local KdbPrintf function for DPRINT1 instead of DbgPrint... 2023-04-12 19:30:56 +02:00
kdb.c [NTOS:KDBG] Reintroduce the capability of KdbpCliInit() to interpret the KDBinit file (#4917) 2024-10-14 22:51:54 +02:00
kdb.h [NTOS:KDBG] Reintroduce the capability of KdbpCliInit() to interpret the KDBinit file (#4917) 2024-10-14 22:51:54 +02:00
kdb_cli.c [NTOS:KDBG] Reintroduce the capability of KdbpCliInit() to interpret the KDBinit file (#4917) 2024-10-14 22:51:54 +02:00
kdb_cmdhist.c [NTOS:KDBG] Move command history management in a separate file. Simplify duplicated code in KdbpReadCommand. 2023-03-27 23:31:34 +02:00
kdb_expr.c [NTOS:KDBG] Use local KdbPrintf function for DPRINT1 instead of DbgPrint... 2023-04-12 19:30:56 +02:00
kdb_print.c [NTOS:KD:KDBG] Integration into KD framework (Part 1/3) 2023-08-31 16:07:51 +02:00
kdb_symbols.c [NTOS:KDBG] Only load symbols on x86 2023-05-04 14:09:14 +03:00
kdbg.c [NTOS:KD:KDBG] Integration into KD framework (Part 2/3) 2023-08-31 16:09:49 +02:00