]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Unix/Host/Host.c
EmulatorPkg/Sec: Fix various typos
[mirror_edk2.git] / EmulatorPkg / Unix / Host / Host.c
index f84b22f576a2d35d7b685c792ad85d77a018b5fa..b431a4c2ed39ab8583f4c2949160c84172ad0c2f 100644 (file)
@@ -2,13 +2,7 @@
 \r
 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -119,7 +113,7 @@ main (
 \r
   //\r
   // Xcode does not support sourcing gdb scripts directly, so the Xcode XML\r
-  // has a break point script to source the GdbRun script.\r
+  // has a break point script to source the GdbRun.sh script.\r
   //\r
   SecGdbConfigBreak ();\r
 \r
@@ -1119,6 +1113,9 @@ DlLoadImage (
 }\r
 \r
 \r
+#ifdef __APPLE__\r
+__attribute__((noinline))\r
+#endif\r
 VOID\r
 SecGdbScriptBreak (\r
   char                *FileName,\r
@@ -1148,7 +1145,7 @@ GdbScriptAddImage (
 \r
   if (ImageContext->PdbPointer != NULL && !IsPdbFile (ImageContext->PdbPointer)) {\r
     FILE  *GdbTempFile;\r
-    if (FeaturePcdGet (PcdEmulatorLazyLoadSymbols)) {    \r
+    if (FeaturePcdGet (PcdEmulatorLazyLoadSymbols)) {\r
       GdbTempFile = fopen (gGdbWorkingFileName, "a");\r
       if (GdbTempFile != NULL) {\r
         long unsigned int SymbolsAddr = (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders);\r
@@ -1170,13 +1167,13 @@ GdbScriptAddImage (
       GdbTempFile = fopen (gGdbWorkingFileName, "w");\r
       if (GdbTempFile != NULL) {\r
         fprintf (\r
-          GdbTempFile, \r
-          "add-symbol-file %s 0x%08lx\n", \r
-          ImageContext->PdbPointer, \r
+          GdbTempFile,\r
+          "add-symbol-file %s 0x%08lx\n",\r
+          ImageContext->PdbPointer,\r
           (long unsigned int)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)\r
           );\r
         fclose (GdbTempFile);\r
-  \r
+\r
         //\r
         // Target for gdb breakpoint in a script that uses gGdbWorkingFileName to set a breakpoint.\r
         // Hey what can you say scripting in gdb is not that great....\r
@@ -1225,7 +1222,7 @@ GdbScriptRemoveImage (
     return;\r
   }\r
 \r
-  if (FeaturePcdGet (PcdEmulatorLazyLoadSymbols)) {    \r
+  if (FeaturePcdGet (PcdEmulatorLazyLoadSymbols)) {\r
     //\r
     // Write the file we need for the gdb script\r
     //\r
@@ -1256,7 +1253,7 @@ GdbScriptRemoveImage (
       SecGdbScriptBreak (ImageContext->PdbPointer, strlen (ImageContext->PdbPointer) + 1, 0, 0);\r
     } else {\r
       ASSERT (FALSE);\r
-    }  \r
+    }\r
   }\r
 }\r
 \r