When GenFvMap tool doesn't open one module map file, it will skip this module.
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 26 Jan 2007 05:56:49 +0000 (05:56 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Fri, 26 Jan 2007 05:56:49 +0000 (05:56 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2323 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/Tools/CCode/Source/GenFvMap/GenFvMap.cpp

index 5da45ab..9934d3c 100644 (file)
@@ -344,9 +344,15 @@ CFvMapFile::CFvMapFile(const CIdAddressPathMap& idAddrPath)
         if (i->second.second == "*")\r
             continue;\r
 \r
-        pair<iterator, bool> r = insert(value_type(i->first,\r
-            new CMapFile(i->second.second.substr(0, i->second.second.rfind('.')) + ".map")));\r
-        r.first->second->SetLoadAddress(i->second.first);\r
+        try\r
+        {\r
+            pair<iterator, bool> r = insert(value_type(i->first,\r
+              new CMapFile(i->second.second.substr(0, i->second.second.rfind('.')) + ".map")));\r
+            r.first->second->SetLoadAddress(i->second.first);\r
+        }\r
+        catch (const runtime_error& e)\r
+        {\r
+        }\r
     }\r
 }\r
 \r