From f5e962ff2ed9d701cc28431eb9ddad2811e9821b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 20 May 2019 13:20:31 +0200 Subject: [PATCH] [NTOS:KD] Remove dead code --- ntoskrnl/include/internal/kd.h | 8 -------- ntoskrnl/kd/kdmain.c | 31 ------------------------------- 2 files changed, 39 deletions(-) diff --git a/ntoskrnl/include/internal/kd.h b/ntoskrnl/include/internal/kd.h index 4354ba3066e..3e57fc2c30a 100644 --- a/ntoskrnl/include/internal/kd.h +++ b/ntoskrnl/include/internal/kd.h @@ -182,14 +182,6 @@ KdpKdbgInit( /* KD ROUTINES ***************************************************************/ -BOOLEAN -NTAPI -KdpCallGdb( - IN PKTRAP_FRAME TrapFrame, - IN PEXCEPTION_RECORD ExceptionRecord, - IN PCONTEXT Context -); - ULONG NTAPI KdpPrintString( diff --git a/ntoskrnl/kd/kdmain.c b/ntoskrnl/kd/kdmain.c index 17c734dff09..d613848bef2 100644 --- a/ntoskrnl/kd/kdmain.c +++ b/ntoskrnl/kd/kdmain.c @@ -252,37 +252,6 @@ KdpEnterDebuggerException(IN PKTRAP_FRAME TrapFrame, return TRUE; } -BOOLEAN -NTAPI -KdpCallGdb(IN PKTRAP_FRAME TrapFrame, - IN PEXCEPTION_RECORD ExceptionRecord, - IN PCONTEXT Context) -{ - KD_CONTINUE_TYPE Return = kdDoNotHandleException; - - /* Get out of here if the Debugger isn't connected */ - if (KdDebuggerNotPresent) return FALSE; - - /* FIXME: - * Right now, the GDB wrapper seems to handle exceptions differntly - * from KDGB and both are called at different times, while the GDB - * one is only called once and that's it. I don't really have the knowledge - * to fix the GDB stub, so until then, we'll be using this hack - */ - if (WrapperInitRoutine) - { - Return = WrapperTable.KdpExceptionRoutine(ExceptionRecord, - Context, - TrapFrame); - } - - /* Debugger didn't handle it, please handle! */ - if (Return == kdHandleException) return FALSE; - - /* Debugger handled it */ - return TRUE; -} - BOOLEAN NTAPI KdIsThisAKdTrap(IN PEXCEPTION_RECORD ExceptionRecord, -- 2.17.1