summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-26 05:56:49 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-26 05:56:49 +0000
commit60ad3479983bc1a4862f130ae09259a4092b1528 (patch)
tree81eace812e20f0b6c1fc9d4d60ceaf5b160aa730 /Tools
parentb79fc8357fd51e1c4875a1c7e37a4bb4e0ad43f5 (diff)
downloadedk2-platforms-60ad3479983bc1a4862f130ae09259a4092b1528.tar.xz
When GenFvMap tool doesn't open one module map file, it will skip this module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2323 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CCode/Source/GenFvMap/GenFvMap.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Tools/CCode/Source/GenFvMap/GenFvMap.cpp b/Tools/CCode/Source/GenFvMap/GenFvMap.cpp
index 5da45abbbd..9934d3cb55 100644
--- a/Tools/CCode/Source/GenFvMap/GenFvMap.cpp
+++ b/Tools/CCode/Source/GenFvMap/GenFvMap.cpp
@@ -344,9 +344,15 @@ CFvMapFile::CFvMapFile(const CIdAddressPathMap& idAddrPath)
if (i->second.second == "*")
continue;
- pair<iterator, bool> r = insert(value_type(i->first,
- new CMapFile(i->second.second.substr(0, i->second.second.rfind('.')) + ".map")));
- r.first->second->SetLoadAddress(i->second.first);
+ try
+ {
+ pair<iterator, bool> r = insert(value_type(i->first,
+ new CMapFile(i->second.second.substr(0, i->second.second.rfind('.')) + ".map")));
+ r.first->second->SetLoadAddress(i->second.first);
+ }
+ catch (const runtime_error& e)
+ {
+ }
}
}