]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdScope.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / EbcDebugger / EdbCmdScope.c
index 9b62c523a8422a712472780bb28ab9e2e36b94d1..d09bb8a7815dd4782861b47185ee36e2b569f001 100644 (file)
@@ -1,53 +1,35 @@
-/*++\r
+/** @file\r
 \r
-Copyright (c) 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
+**/\r
 \r
-  EdbCmdScope.c\r
+#include "Edb.h"\r
 \r
-Abstract:\r
+/**\r
 \r
+  DebuggerCommand - Scope.\r
 \r
---*/\r
+  @param  CommandArg      - The argument for this command\r
+  @param  DebuggerPrivate - EBC Debugger private data structure\r
+  @param  ExceptionType   - Exception type.\r
+  @param  SystemContext   - EBC system context.\r
 \r
-#include "Edb.h"\r
+  @retval EFI_DEBUG_CONTINUE - formal return value\r
 \r
+**/\r
 EFI_DEBUG_STATUS\r
 DebuggerScope (\r
-  IN     CHAR16                    *CommandArg,\r
-  IN     EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,\r
-  IN     EFI_EXCEPTION_TYPE        ExceptionType,\r
-  IN OUT EFI_SYSTEM_CONTEXT        SystemContext\r
+  IN     CHAR16                     *CommandArg,\r
+  IN     EFI_DEBUGGER_PRIVATE_DATA  *DebuggerPrivate,\r
+  IN     EFI_EXCEPTION_TYPE         ExceptionType,\r
+  IN OUT EFI_SYSTEM_CONTEXT         SystemContext\r
   )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  DebuggerCommand - Scope\r
-\r
-Arguments:\r
-\r
-  CommandArg      - The argument for this command\r
-  DebuggerPrivate - EBC Debugger private data structure\r
-  InterruptType   - Interrupt type.\r
-  SystemContext   - EBC system context.\r
-\r
-Returns:\r
-\r
-  EFI_DEBUG_CONTINUE - formal return value\r
-\r
---*/\r
 {\r
-  EFI_STATUS   Status;\r
-  UINTN        Address;\r
+  EFI_STATUS  Status;\r
+  UINTN       Address;\r
 \r
   if (CommandArg == NULL) {\r
     EDBPrint (L"Scope: invalid Address\n");\r
@@ -60,7 +42,7 @@ Returns:
   Status = Symboltoi (CommandArg, &Address);\r
   if (EFI_ERROR (Status)) {\r
     if (Status == EFI_NOT_FOUND) {\r
-      Address = Xtoi(CommandArg);\r
+      Address = Xtoi (CommandArg);\r
     } else {\r
       //\r
       // Something wrong, let Symboltoi print error info.\r
@@ -69,6 +51,7 @@ Returns:
       return EFI_DEBUG_CONTINUE;\r
     }\r
   }\r
+\r
   DebuggerPrivate->InstructionScope = Address;\r
   EDBPrint (L"Scope: 0x%x\n", DebuggerPrivate->InstructionScope);\r
   EdbShowDisasm (DebuggerPrivate, SystemContext);\r
@@ -79,31 +62,25 @@ Returns:
   return EFI_DEBUG_CONTINUE;\r
 }\r
 \r
-EFI_DEBUG_STATUS\r
-DebuggerList (\r
-  IN     CHAR16                    *CommandArg,\r
-  IN     EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,\r
-  IN     EFI_EXCEPTION_TYPE        ExceptionType,\r
-  IN OUT EFI_SYSTEM_CONTEXT        SystemContext\r
-  )\r
-/*++\r
-\r
-Routine Description:\r
-\r
-  DebuggerCommand - List\r
+/**\r
 \r
-Arguments:\r
+  DebuggerCommand - List.\r
 \r
-  CommandArg      - The argument for this command\r
-  DebuggerPrivate - EBC Debugger private data structure\r
-  InterruptType   - Interrupt type.\r
-  SystemContext   - EBC system context.\r
+  @param  CommandArg      - The argument for this command\r
+  @param  DebuggerPrivate - EBC Debugger private data structure\r
+  @param  ExceptionType   - Exception type.\r
+  @param  SystemContext   - EBC system context.\r
 \r
-Returns:\r
+  @retval EFI_DEBUG_CONTINUE - formal return value\r
 \r
-  EFI_DEBUG_CONTINUE - formal return value\r
-\r
---*/\r
+**/\r
+EFI_DEBUG_STATUS\r
+DebuggerList (\r
+  IN     CHAR16                     *CommandArg,\r
+  IN     EFI_DEBUGGER_PRIVATE_DATA  *DebuggerPrivate,\r
+  IN     EFI_EXCEPTION_TYPE         ExceptionType,\r
+  IN OUT EFI_SYSTEM_CONTEXT         SystemContext\r
+  )\r
 {\r
   if (CommandArg == NULL) {\r
     EdbShowDisasm (DebuggerPrivate, SystemContext);\r
@@ -111,7 +88,7 @@ Returns:
     //\r
     // Load new list number\r
     //\r
-    DebuggerPrivate->InstructionNumber = Atoi(CommandArg);\r
+    DebuggerPrivate->InstructionNumber = Atoi (CommandArg);\r
     EDBPrint (L"List Number: %d\n", DebuggerPrivate->InstructionNumber);\r
     EdbShowDisasm (DebuggerPrivate, SystemContext);\r
   }\r