Log more information about version information on startup

May help address #653
develop
lethosor 2015-09-22 20:01:05 -04:00
parent 60ed4a1a50
commit 788860efb6
2 changed files with 8 additions and 0 deletions

@ -103,6 +103,12 @@ Process::Process(VersionInfoFactory * factory)
my_descriptor = new VersionInfo(*vinfo);
my_descriptor->rebaseTo(getBase());
}
else
{
fprintf(stderr, "Unable to retrieve version information.\nPE timestamp: 0x%x\n",
d->pe_header.FileHeader.TimeDateStamp);
fflush(stderr);
}
}
Process::~Process()

@ -149,6 +149,7 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
else if (type == "md5-hash")
{
const char *cstr_value = pMemEntry->Attribute("value");
fprintf(stderr, "%s: MD5: %s\n", cstr_name, cstr_value);
if(!cstr_value)
throw Error::SymbolsXmlUnderspecifiedEntry(cstr_name);
mem->addMD5(cstr_value);
@ -156,6 +157,7 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
else if (type == "binary-timestamp")
{
const char *cstr_value = pMemEntry->Attribute("value");
fprintf(stderr, "%s: PE: %s\n", cstr_name, cstr_value);
if(!cstr_value)
throw Error::SymbolsXmlUnderspecifiedEntry(cstr_name);
mem->addPE(strtol(cstr_value, 0, 16));