[NTOS:KD] A few trivial code improvements
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Wed, 10 Oct 2018 23:29:39 +0000 (01:29 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 12 Oct 2018 06:43:02 +0000 (08:43 +0200)
ntoskrnl/kd/wrappers/gdbstub_powerpc.c

index edc6904..8a22354 100644 (file)
@@ -1244,7 +1244,7 @@ GspUnloadBreakpoints(PKTRAP_FRAME TrapFrame)
 
 static BOOLEAN gdb_attached_yet = FALSE;
 /*
 
 static BOOLEAN gdb_attached_yet = FALSE;
 /*
- * This function does all command procesing for interfacing to gdb.
+ * This function does all command processing for interfacing to gdb.
  */
 KD_CONTINUE_TYPE
 NTAPI
  */
 KD_CONTINUE_TYPE
 NTAPI
@@ -1295,7 +1295,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
         {
           LONG Esp;
 
         {
           LONG Esp;
 
-          stop_reply:
+stop_reply:
           /* reply to host that an exception has occurred */
           SigVal = GspComputeSignal(ExceptionRecord->ExceptionCode);
 
           /* reply to host that an exception has occurred */
           SigVal = GspComputeSignal(ExceptionRecord->ExceptionCode);
 
@@ -1342,13 +1342,16 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
           switch(*ptr++)
             {
             case '?':
           switch(*ptr++)
             {
             case '?':
+#if 1
               /* a little hack to send more complete status information */
               goto stop_reply;
               /* a little hack to send more complete status information */
               goto stop_reply;
+#else
               GspOutBuffer[0] = 'S';
               GspOutBuffer[1] = HexChars[SigVal >> 4];
               GspOutBuffer[2] = HexChars[SigVal % 16];
               GspOutBuffer[3] = 0;
               break;
               GspOutBuffer[0] = 'S';
               GspOutBuffer[1] = HexChars[SigVal >> 4];
               GspOutBuffer[2] = HexChars[SigVal % 16];
               GspOutBuffer[3] = 0;
               break;
+#endif
             case 'd':
               GspRemoteDebug = !GspRemoteDebug; /* toggle debug flag */
               break;
             case 'd':
               GspRemoteDebug = !GspRemoteDebug; /* toggle debug flag */
               break;
@@ -1530,7 +1533,6 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord,
             case 'k':  /* kill the program */
               strcpy(GspOutBuffer, "OK");
               break;
             case 'k':  /* kill the program */
               strcpy(GspOutBuffer, "OK");
               break;
-              /* kill the program */
 
             case 'H': /* Set thread */
               GspSetThread(ptr);
 
             case 'H': /* Set thread */
               GspSetThread(ptr);