/** @file\r
*\r
* Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
-* \r
-* 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
*\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
+* 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
+*\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
**/\r
\r
IN UINTN Argc,\r
IN CHAR8 **Argv\r
);\r
- \r
+\r
EFI_STATUS\r
EblDumpFdt (\r
IN UINTN Argc,\r
Simple arm disassembler via a library\r
\r
Argv[0] - symboltable\r
- Argv[1] - Optional qoted format string \r
+ Argv[1] - Optional qoted format string\r
Argv[2] - Optional flag\r
\r
@param Argc Number of command arguments in Argv\r
- @param Argv Array of strings that represent the parsed command line. \r
+ @param Argv Array of strings that represent the parsed command line.\r
Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
UINT32 PeCoffSizeOfHeaders;\r
UINT32 ImageBase;\r
BOOLEAN Elf;\r
- \r
+\r
// Need to add lots of error checking on the passed in string\r
// Default string is for RealView debugger\r
#if (__ARMCC_VERSION < 500000)\r
Format = (Argc > 1) ? Argv[1] : "add-symbol-file %a 0x%x";\r
#endif\r
Elf = (Argc > 2) ? FALSE : TRUE;\r
- \r
+\r
Status = EfiGetSystemConfigurationTable (&gEfiDebugImageInfoTableGuid, (VOID **)&DebugImageTableHeader);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
- \r
+\r
DebugTable = DebugImageTableHeader->EfiDebugImageInfoTable;\r
if (DebugTable == NULL) {\r
return EFI_SUCCESS;\r
if (Elf) {\r
// ELF and Mach-O images don't include the header so the linked address does not include header\r
ImageBase += PeCoffSizeOfHeaders;\r
- } \r
+ }\r
AsciiPrint (Format, Pdb, ImageBase);\r
AsciiPrint ("\n");\r
} else {\r
}\r
}\r
- } \r
+ }\r
}\r
\r
return EFI_SUCCESS;\r
ARgv[2] - Number of instructions to disassembly (optional)\r
\r
@param Argc Number of command arguments in Argv\r
- @param Argv Array of strings that represent the parsed command line. \r
+ @param Argv Array of strings that represent the parsed command line.\r
Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
UINT32 Count;\r
CHAR8 Buffer[80];\r
UINT32 ItBlock;\r
- \r
+\r
if (Argc < 2) {\r
return EFI_INVALID_PARAMETER;\r
}\r
- \r
+\r
Address = AsciiStrHexToUintn (Argv[1]);\r
Count = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 20;\r
\r
- Ptr = (UINT8 *)(UINTN)Address; \r
+ Ptr = (UINT8 *)(UINTN)Address;\r
ItBlock = 0;\r
do {\r
CurrentAddress = Ptr;\r
DisassembleInstruction (&Ptr, TRUE, TRUE, &ItBlock, Buffer, sizeof (Buffer));\r
AsciiPrint ("0x%08x: %a\n", CurrentAddress, Buffer);\r
} while (Count-- > 0);\r
- \r
+\r
\r
return EFI_SUCCESS;\r
}\r
ARgv[2] - Number of instructions to disassembly (optional)\r
\r
@param Argc Number of command arguments in Argv\r
- @param Argv Array of strings that represent the parsed command line. \r
+ @param Argv Array of strings that represent the parsed command line.\r
Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
AsciiPrint ("%6a %6ld ms\n", Token, Milliseconds);\r
break;\r
}\r
- } \r
+ }\r
}\r
} while (Key != 0);\r
\r