From 788860efb6ecb5b3d8ca0883841a9534b0768809 Mon Sep 17 00:00:00 2001 From: lethosor Date: Tue, 22 Sep 2015 20:01:05 -0400 Subject: [PATCH] Log more information about version information on startup May help address #653 --- library/Process-windows.cpp | 6 ++++++ library/VersionInfoFactory.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/library/Process-windows.cpp b/library/Process-windows.cpp index 758de9bb6..c923441e3 100644 --- a/library/Process-windows.cpp +++ b/library/Process-windows.cpp @@ -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() diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp index 2336b8d6c..f6bd5cba9 100644 --- a/library/VersionInfoFactory.cpp +++ b/library/VersionInfoFactory.cpp @@ -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));