diff options
author | laforge@chromium.org <laforge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-15 17:33:46 +0000 |
---|---|---|
committer | laforge@chromium.org <laforge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-15 17:33:46 +0000 |
commit | 7e6b9261d9c928e09c7445f880f2ce10efee8a20 (patch) | |
tree | 95190aa9ee4e9e3a7bfa7ae719b991ebeed8a366 /courgette/win32_x86_generator.h | |
parent | 910d7302e8e6e8225cb2590bb27b4aa040758e6a (diff) | |
download | chromium_src-7e6b9261d9c928e09c7445f880f2ce10efee8a20.zip chromium_src-7e6b9261d9c928e09c7445f880f2ce10efee8a20.tar.gz chromium_src-7e6b9261d9c928e09c7445f880f2ce10efee8a20.tar.bz2 |
Fix for bug where 64-bit executables were processed as 32-bit executables.
Added some more logging.
TBR=sra
Review URL: http://codereview.chromium.org/988002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/win32_x86_generator.h')
-rw-r--r-- | courgette/win32_x86_generator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/courgette/win32_x86_generator.h b/courgette/win32_x86_generator.h index 3aabe9f..c0302ca 100644 --- a/courgette/win32_x86_generator.h +++ b/courgette/win32_x86_generator.h @@ -7,6 +7,7 @@ #ifndef COURGETTE_WIN32_X86_GENERATOR_H_ #define COURGETTE_WIN32_X86_GENERATOR_H_ +#include "base/logging.h" #include "base/scoped_ptr.h" #include "courgette/ensemble.h" @@ -60,8 +61,10 @@ class CourgetteWin32X86PatchGenerator : public TransformationPatchGenerator { ParseWin32X86PE(old_element_->region().start(), old_element_->region().length(), &old_program); - if (old_parse_status != C_OK) + if (old_parse_status != C_OK) { + LOG(ERROR) << "Cannot parse as Win32X86PE " << old_element_->Name(); return old_parse_status; + } AssemblyProgram* new_program = NULL; Status new_parse_status = @@ -70,6 +73,7 @@ class CourgetteWin32X86PatchGenerator : public TransformationPatchGenerator { &new_program); if (new_parse_status != C_OK) { DeleteAssemblyProgram(old_program); + LOG(ERROR) << "Cannot parse as Win32X86PE " << new_element_->Name(); return new_parse_status; } |