diff options
author | Woongsuk Cho <ws77.cho@samsung.com> | 2018-12-19 08:50:43 +0900 |
---|---|---|
committer | Woongsuk Cho <ws77.cho@samsung.com> | 2018-12-19 08:52:52 +0900 |
commit | 76d2d2dd465ab9beb50786793876608279983885 (patch) | |
tree | f621f81fadd164e3c28a6b09094b451b774444be /src/binder/assemblybinder.cpp | |
parent | 3e574d9432e5d9d2dca42699bff4bf0967300004 (diff) | |
download | coreclr-accepted/tizen/5.0/base/20181221.113757.tar.gz coreclr-accepted/tizen/5.0/base/20181221.113757.tar.bz2 coreclr-accepted/tizen/5.0/base/20181221.113757.zip |
Add an error log to determine where to throw BadImageFormatExceptionsubmit/tizen_5.0_base/20181219.005417accepted/tizen/5.0/base/20181221.113757
Change-Id: I0231e9c5209ce39acfe37c54cfcda934b4f773db
Diffstat (limited to 'src/binder/assemblybinder.cpp')
-rw-r--r-- | src/binder/assemblybinder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/binder/assemblybinder.cpp b/src/binder/assemblybinder.cpp index 7c0aa8077e..89f4a06eb0 100644 --- a/src/binder/assemblybinder.cpp +++ b/src/binder/assemblybinder.cpp @@ -517,6 +517,7 @@ namespace BINDER_SPACE { // Not a PE. Shouldn't ever get here. BINDER_LOG(W("Not a PE!")); + fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__); IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT)); } else @@ -535,6 +536,7 @@ namespace BINDER_SPACE { // Invalid BINDER_LOG(W("CLRPeKind & pe32BitRequired is true")); + fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__); IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT)); } @@ -548,6 +550,7 @@ namespace BINDER_SPACE { // We don't support other architectures BINDER_LOG(W("Unknown architecture")); + fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__); IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT)); } } @@ -562,6 +565,7 @@ namespace BINDER_SPACE { // Not supported BINDER_LOG(W("32-bit, non-agnostic")); + fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__); IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT)); } } @@ -852,6 +856,7 @@ namespace BINDER_SPACE // Validate architecture if (!fInspectionOnly && !Assembly::IsValidArchitecture(pAssemblyName->GetArchitecture())) { + fprintf(stderr, "@@[SR] %s:%d, Not a PE\n", __FILE__, __LINE__); IF_FAIL_GO(HRESULT_FROM_WIN32(ERROR_BAD_FORMAT)); } |