From 60ad3479983bc1a4862f130ae09259a4092b1528 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 26 Jan 2007 05:56:49 +0000 Subject: [PATCH] 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 --- Tools/CCode/Source/GenFvMap/GenFvMap.cpp | 12 +++++++++--- 1 file 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 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 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) + { + } } } -- 2.39.2