diff options
| author | Petr Mrázek | 2012-02-20 08:30:33 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-20 08:30:33 +0100 |
| commit | 7c7cf0b302ad25444388c053303702562468a2db (patch) | |
| tree | 3803e24de6d50fb1609cb7ee8c9eeeb35a186f3d /library/VersionInfoFactory.cpp | |
| parent | a98f5798287a53587a50171682ab77353805f769 (diff) | |
| download | dfhack-7c7cf0b302ad25444388c053303702562468a2db.tar.gz dfhack-7c7cf0b302ad25444388c053303702562468a2db.tar.bz2 dfhack-7c7cf0b302ad25444388c053303702562468a2db.tar.xz | |
Don't throw exceptions on dummy global-address elements.
Diffstat (limited to 'library/VersionInfoFactory.cpp')
| -rw-r--r-- | library/VersionInfoFactory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp index 2d93dd2b..7d963673 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") |
