When GenFvMap tool doesn't open one module map file, it will skip this module.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 26 Jan 2007 05:56:49 +0000 (05:56 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 26 Jan 2007 05:56:49 +0000 (05:56 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2323 6f19259b-4bc3-4df7-8a09-765794883524

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