sys: HasDbgBreakPoint and flesh out IRP handlers (to return STATUS_INVALID_REQUEST)

This commit is contained in:
Bill Zissimopoulos
2015-11-17 23:11:47 -08:00
parent 5424692f7f
commit f52e36e76e
17 changed files with 71 additions and 20 deletions

View File

@ -7,6 +7,17 @@
#include <sys/driver.h>
#if DBG
static ANSI_STRING DbgBreakPointInc = RTL_CONSTANT_STRING("Fsp*");
BOOLEAN HasDbgBreakPoint(const char *Function)
{
/* poor man's breakpoints; work around 32 breakpoints kernel limit */
if (KeGetCurrentIrql() > APC_LEVEL)
return TRUE;
ANSI_STRING Name;
RtlInitAnsiString(&Name, Function);
return FsRtlIsDbcsInExpression(&DbgBreakPointInc, &Name);
}
const char *NtStatusSym(NTSTATUS Status)
{
switch (Status)