end
if gInXcode == 1
- # in Xcode the program is already runing. Issuing a run command
- # will cause a fatal debugger error. The break point sciprt that
+ # in Xcode the program is already running. Issuing a run command
+ # will cause a fatal debugger error. The break point script that
# is used to source this script sets gInCode to 1.
else
#
Tested on Mac OS X.\r
\r
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
-Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
+Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
Done:\r
if (Token != NULL) {\r
if (Token->Event != NULL) {\r
- // Caller is responcible for signaling EFI Event\r
+ // Caller is responsible for signaling EFI Event\r
Token->TransactionStatus = Status;\r
return EFI_SUCCESS;\r
}\r
the Event is NULL.\r
@retval EFI_WRITE_PROTECTED The device can not be written to.\r
@retval EFI_NO_MEDIA There is no media in the device.\r
- @retval EFI_MEDIA_CHNAGED The MediaId does not matched the current device.\r
+ @retval EFI_MEDIA_CHANGED The MediaId does not match the current device.\r
@retval EFI_DEVICE_ERROR The device reported an error while performing the write.\r
@retval EFI_BAD_BUFFER_SIZE The Buffer was not a multiple of the block size of the device.\r
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
Done:\r
if (Token != NULL) {\r
if (Token->Event != NULL) {\r
- // Caller is responcible for signaling EFI Event\r
+ // Caller is responsible for signaling EFI Event\r
Token->TransactionStatus = Status;\r
return EFI_SUCCESS;\r
}\r
@retval EFI_SUCCESS The flush request was queued if Event is not NULL.\r
All outstanding data was written correctly to the\r
device if the Event is NULL.\r
- @retval EFI_DEVICE_ERROR The device reported an error while writting back\r
+ @retval EFI_DEVICE_ERROR The device reported an error while writing back\r
the data.\r
@retval EFI_WRITE_PROTECTED The device cannot be written to.\r
@retval EFI_NO_MEDIA There is no media in the device.\r
\r
if (Token != NULL) {\r
if (Token->Event != NULL) {\r
- // Caller is responcible for signaling EFI Event\r
+ // Caller is responsible for signaling EFI Event\r
Token->TransactionStatus = EFI_SUCCESS;\r
return EFI_SUCCESS;\r
}\r
\r
@param[in] This Indicates a pointer to the calling context.\r
@param[in] ExtendedVerification Indicates that the driver may perform a more\r
- exhausive verfication operation of the device\r
+ exhaustive verification operation of the device\r
during reset.\r
\r
@retval EFI_SUCCESS The device was reset.\r
The mUnixThunkTable exists so that a change to EFI_EMU_THUNK_PROTOCOL\r
will cause an error in initializing the array if all the member functions\r
are not added. It looks like adding a element to end and not initializing\r
- it may cause the table to be initaliized with the members at the end being\r
+ it may cause the table to be initialized with the members at the end being\r
set to zero. This is bad as jumping to zero will crash.\r
\r
Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
EMU_FD_INFO *gFdInfo;\r
\r
//\r
-// Array that supports seperate memory rantes.\r
+// Array that supports separate memory ranges.\r
// The memory ranges are set in system.cmd via the EFI_MEMORY_SIZE variable.\r
// The number of array elements is allocated base on parsing\r
// EFI_MEMORY_SIZE and the memory is never freed.\r
Returns:\r
EFI_SUCCESS - The file was opened and mapped.\r
EFI_NOT_FOUND - FileName was not found in the current directory\r
- EFI_DEVICE_ERROR - An error occured attempting to map the opened file\r
+ EFI_DEVICE_ERROR - An error occurred attempting to map the opened file\r
\r
**/\r
EFI_STATUS\r
PeiCorePe32File - SEC PE32\r
\r
Returns:\r
- Success means control is transfered and thus we should never return\r
+ Success means control is transferred and thus we should never return\r
\r
**/\r
VOID\r
It allows discontinuous memory regions to be supported by the emulator.\r
It uses gSystemMemory[] and gSystemMemoryCount that were created by\r
parsing the host environment variable EFI_MEMORY_SIZE.\r
- The size comes from the varaible and the address comes from the call to\r
+ The size comes from the variable and the address comes from the call to\r
UnixOpenFile.\r
\r
Arguments:\r
\r
This is all of GCD for system memory passed to DXE Core. FV\r
mapping and other device mapped into system memory are not\r
- inlcuded in the check.\r
+ included in the check.\r
\r
Arguments:\r
Index - Which memory region to use\r
\r
Routine Description:\r
Return the FD Size and base address. Since the FD is loaded from a\r
- file into host memory only the SEC will know it's address.\r
+ file into host memory only the SEC will know its address.\r
\r
Arguments:\r
Index - Which FD, starts at zero.\r
The ModHandle is needed to unload the image.\r
\r
Arguments:\r
- ImageContext - Input data returned from PE Laoder Library. Used to find the\r
+ ImageContext - Input data returned from PE Loader Library. Used to find the\r
.PDB file name of the PE Image.\r
ModHandle - Returned from LoadLibraryEx() and stored for call to\r
FreeLibrary().\r
for (Index = 0; Index < mImageContextModHandleArraySize; Index++, Array++) {\r
if (Array->ImageContext == NULL) {\r
//\r
- // Make a copy of the stirng and store the ModHandle\r
+ // Make a copy of the string and store the ModHandle\r
//\r
Array->ImageContext = ImageContext;\r
Array->ModHandle = ModHandle;\r
//\r
// No free space in mImageContextModHandleArray so grow it by\r
// IMAGE_CONTEXT_TO_MOD_HANDLE entires. realloc will\r
- // copy the old values to the new locaiton. But it does\r
+ // copy the old values to the new location. But it does\r
// not zero the new memory area.\r
//\r
PreviousSize = mImageContextModHandleArraySize * sizeof (IMAGE_CONTEXT_TO_MOD_HANDLE);\r
Return the ModHandle and delete the entry in the array.\r
\r
Arguments:\r
- ImageContext - Input data returned from PE Laoder Library. Used to find the\r
+ ImageContext - Input data returned from PE Loader Library. Used to find the\r
.PDB file name of the PE Image.\r
\r
Returns:\r
- ModHandle - ModHandle assoicated with ImageContext is returned\r
+ ModHandle - ModHandle associated with ImageContext is returned\r
NULL - No ModHandle associated with ImageContext\r
\r
**/\r
\r
\r
/**\r
- Adds the image to a gdb script so it's symbols can be loaded.\r
+ Adds the image to a gdb script so its symbols can be loaded.\r
The AddFirmwareSymbolFile helper macro is used.\r
\r
@param ImageContext The PE/COFF image context\r
\r
\r
/**\r
- Adds the image to a gdb script so it's symbols can be unloaded.\r
+ Adds the image to a gdb script so its symbols can be unloaded.\r
The RemoveFirmwareSymbolFile helper macro is used.\r
\r
@param ImageContext The PE/COFF image context\r
is just a template that needs to get filled in.\r
\r
Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
-Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
+Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
EnabledOnEntry = FALSE;\r
}\r
\r
- // Aquire lock for global, SecFakePthreadStart runs in a different thread.\r
+ // Acquire lock for global, SecFakePthreadStart runs in a different thread.\r
pthread_mutex_lock (&mThreadMangle.Mutex);\r
mThreadMangle.Start = Start;\r
\r
//\r
// Gaskets are EFI ABI to UNIX ABI calls\r
// EFI ABI code will sub 40 (0x28) from %rsp before calling a function\r
-// This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundry.\r
+// This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundary.\r
//\r
.text\r
\r
-// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundry\r
+// 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundary\r
// Any call with 0 - 4 arguments allocates 40 bytes on the stack.\r
// For more than 4 args you always have to increase in quanta of 16 so 5 or 6 args is 56,\r
// 7 or 8 args is 72, and 9 or 10 args is 88\r
#------------------------------------------------------------------------------\r
#\r
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# Portitions copyright (c) 2011, Apple Inc. All rights reserved.\r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
#------------------------------------------------------------------------------\r
#!/usr/bin/python\r
\r
#\r
-# Copyright 2014 Apple Inc. All righes reserved.\r
+# Copyright 2014 Apple Inc. All rights reserved.\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
\r
Address = long ("%d" % valobj.addr)\r
if (Address == lldb.LLDB_INVALID_ADDRESS):\r
- # Need to reserach this, it seems to be the nested struct case\r
+ # Need to research this, it seems to be the nested struct case\r
ExprStr = ""\r
elif (Type & 0x7f == 0x7f):\r
ExprStr = "End Device Path" if SubType == 0xff else "End This Instance"\r
\r
def TypePrintFormating(debugger):\r
#\r
- # Set the default print formating for EFI types in lldb.\r
+ # Set the default print formatting for EFI types in lldb.\r
# seems lldb defaults to decimal.\r
#\r
category = debugger.GetDefaultCategory()\r
FileName = frame.thread.process.ReadCStringFromMemory (FileNamePtr, FileNameLen, Error)\r
if not Error.Success():\r
print "!ReadCStringFromMemory() did not find a %d byte C string at %x" % (FileNameLen, FileNamePtr)\r
- # make breakpoint command contiue\r
+ # make breakpoint command continue\r
return False\r
\r
debugger = frame.thread.process.target.debugger\r
if not target.RemoveModule (SBModule):\r
print "!lldb.target.RemoveModule (%s) FAILED" % SBModule\r
\r
- # make breakpoint command contiue\r
+ # make breakpoint command continue\r
return False\r
\r
def GuidToCStructStr (guid, Name=False):\r
#\r
- # Convert a 16-byte bytesarry (or bytearray compat object) to C guid string\r
+ # Convert a 16-byte bytesarray (or bytearray compat object) to C guid string\r
# { 0xB402621F, 0xA940, 0x1E4A, { 0x86, 0x6B, 0x4D, 0xC9, 0x16, 0x2B, 0x34, 0x7C } }\r
#\r
# Name=True means lookup name in GuidNameDict and us it if you find it\r
if len(data) >= 2:\r
guid_dict[data[0].upper()] = data[1].strip('\n')\r
\r
- # init EFI specific type formaters\r
+ # init EFI specific type formatters\r
TypePrintFormating (debugger)\r
\r
\r