#!/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