mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 00:03:22 +00:00
[NTOS:KD] Merge KdEnableDebuggerWithLock()/KdDisableDebuggerWithLock() with kd64 version
This commit is contained in:
parent
ebb6f29e69
commit
e31be4ec25
1 changed files with 0 additions and 43 deletions
|
@ -1964,7 +1964,6 @@ NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
|
KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
{
|
{
|
||||||
#ifdef _WINKD_
|
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
|
@ -2035,31 +2034,12 @@ KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
|
|
||||||
/* We're done */
|
/* We're done */
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
#else
|
|
||||||
KIRQL OldIrql;
|
|
||||||
|
|
||||||
/* Raise IRQL */
|
|
||||||
KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
|
|
||||||
|
|
||||||
/* TODO: Re-enable any breakpoints */
|
|
||||||
|
|
||||||
/* Enable the Debugger */
|
|
||||||
KdDebuggerEnabled = TRUE;
|
|
||||||
SharedUserData->KdDebuggerEnabled = TRUE;
|
|
||||||
|
|
||||||
/* Lower the IRQL */
|
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
|
|
||||||
/* Return success */
|
|
||||||
return STATUS_SUCCESS;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
|
KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
{
|
{
|
||||||
#ifdef _WINKD_
|
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
@ -2144,29 +2124,6 @@ KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
|
|
||||||
/* We're done */
|
/* We're done */
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
#else
|
|
||||||
KIRQL OldIrql;
|
|
||||||
|
|
||||||
if (!NeedLock)
|
|
||||||
{
|
|
||||||
return STATUS_ACCESS_DENIED;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Raise IRQL */
|
|
||||||
KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
|
|
||||||
|
|
||||||
/* TODO: Disable any breakpoints */
|
|
||||||
|
|
||||||
/* Disable the Debugger */
|
|
||||||
KdDebuggerEnabled = FALSE;
|
|
||||||
SharedUserData->KdDebuggerEnabled = FALSE;
|
|
||||||
|
|
||||||
/* Lower the IRQL */
|
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
|
|
||||||
/* Return success */
|
|
||||||
return STATUS_SUCCESS;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PUBLIC FUNCTIONS **********************************************************/
|
/* PUBLIC FUNCTIONS **********************************************************/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue