]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/GdbStub/GdbStub.c
EmbeddedPkg: Fix various typos
[mirror_edk2.git] / EmbeddedPkg / GdbStub / GdbStub.c
index eda5ba143ab95aefa4ec03c46fc00d085ce5298a..7f2a5ed20011c06482760e4994ef3fcbe46bd734 100644 (file)
@@ -2,7 +2,7 @@
   UEFI driver that implements a GDB stub\r
 \r
   Note: Any code in the path of the Serial IO output can not call DEBUG as will\r
-  will blow out the stack. Serial IO calls DEBUG, debug calls Serail IO, ...\r
+  will blow out the stack. Serial IO calls DEBUG, debug calls Serial IO, ...\r
 \r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
@@ -260,10 +260,10 @@ TransferFromMemToOutBufAndSend (
   Send a GDB Remote Serial Protocol Packet\r
 \r
   $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',\r
-  the packet teminating character '#' and the two digit checksum.\r
+  the packet terminating character '#' and the two digit checksum.\r
 \r
   If an ack '+' is not sent resend the packet, but timeout eventually so we don't end up\r
-  in an infinit loop. This is so if you unplug the debugger code just keeps running\r
+  in an infinite loop. This is so if you unplug the debugger code just keeps running\r
 \r
   @param PacketData   Payload data for the packet\r
 \r
@@ -317,7 +317,7 @@ SendPacket (
   Receive a GDB Remote Serial Protocol Packet\r
 \r
   $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$',\r
-  the packet teminating character '#' and the two digit checksum.\r
+  the packet terminating character '#' and the two digit checksum.\r
 \r
   If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed.\r
   (In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.)\r
@@ -407,7 +407,7 @@ EmptyBuffer (
  Converts an 8-bit Hex Char into a INTN.\r
 \r
  @param   Char the hex character to be converted into UINTN\r
- @retval  a INTN, from 0 to 15, that corressponds to Char\r
+ @retval  a INTN, from 0 to 15, that corresponds to Char\r
  -1 if Char is not a hex character\r
  **/\r
 INTN\r
@@ -596,7 +596,7 @@ ConvertEFItoGDBtype (
 \r
 \r
 /** "m addr,length"\r
- Find the Length of the area to read and the start addres. Finally, pass them to\r
+ Find the Length of the area to read and the start address. Finally, pass them to\r
  another function, TransferFromMemToOutBufAndSend, that will read from that memory space and\r
  send it as a packet.\r
  **/\r
@@ -644,7 +644,7 @@ ReadFromMemory (
 \r
 \r
 /** "M addr,length :XX..."\r
- Find the Length of the area in bytes to write and the start addres. Finally, pass them to\r
+ Find the Length of the area in bytes to write and the start address. Finally, pass them to\r
  another function, TransferFromInBufToMem, that will write to that memory space the info in\r
  the input buffer.\r
  **/\r
@@ -918,7 +918,7 @@ PeCoffLoaderGetDebuggerInfo (
       break;\r
     default:\r
       //\r
-      // For unknow Machine field, use Magic in optional Header\r
+      // For unknown Machine field, use Magic in optional Header\r
       //\r
       Magic = Hdr.Pe32->OptionalHeader.Magic;\r
     }\r
@@ -1088,7 +1088,7 @@ QxferLibrary (
 \r
 \r
 /**\r
- Exception Hanldler for GDB. It will be called for all exceptions\r
+ Exception Handler for GDB. It will be called for all exceptions\r
  registered via the gExceptionType[] array.\r
 \r
  @param ExceptionType     Exception that is being processed\r
@@ -1157,7 +1157,7 @@ GdbExceptionHandler (
       case 'q':\r
         // General Query Packets\r
         if (AsciiStrnCmp (gInBuffer, "qSupported", 10) == 0) {\r
-          // return what we currently support, we don't parse what gdb suports\r
+          // return what we currently support, we don't parse what gdb supports\r
           AsciiSPrint (gOutBuffer, MAX_BUF_SIZE, "qXfer:libraries:read+;PacketSize=%d", MAX_BUF_SIZE);\r
           SendPacket (gOutBuffer);\r
         } else if (AsciiStrnCmp (gInBuffer, "qXfer:libraries:read::", 22) == 0) {\r