From 7c7cf0b302ad25444388c053303702562468a2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 20 Feb 2012 08:30:33 +0100 Subject: [PATCH] Don't throw exceptions on dummy global-address elements. --- library/VersionInfoFactory.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp index 2d93dd2b4..7d963673b 100644 --- a/library/VersionInfoFactory.cpp +++ b/library/VersionInfoFactory.cpp @@ -125,7 +125,10 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem) throw Error::MemoryXmlUnderspecifiedEntry(cstr_name); const char *cstr_value = pMemEntry->Attribute("value"); if(!cstr_value) - throw Error::MemoryXmlUnderspecifiedEntry(cstr_name); + { + cerr << "Dummy symbol table entry: " << cstr_key << endl; + continue; + } mem->setAddress(cstr_key, strtol(cstr_value, 0, 0)); } else if (type == "md5-hash")