]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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 5da45abbbd900582d51071c678f1f49d83c70d04..9934d3cb5580ab80954d5c39a9dcbef59bc338e6 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