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/utilcode/peinformation.cpp | |
parent | 3e574d9432e5d9d2dca42699bff4bf0967300004 (diff) | |
download | coreclr-76d2d2dd465ab9beb50786793876608279983885.tar.gz coreclr-76d2d2dd465ab9beb50786793876608279983885.tar.bz2 coreclr-76d2d2dd465ab9beb50786793876608279983885.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/utilcode/peinformation.cpp')
-rw-r--r-- | src/utilcode/peinformation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utilcode/peinformation.cpp b/src/utilcode/peinformation.cpp index 20a9fe18b0..de7bbc6160 100644 --- a/src/utilcode/peinformation.cpp +++ b/src/utilcode/peinformation.cpp @@ -26,6 +26,7 @@ HRESULT TranslatePEToArchitectureType(CorPEKind CLRPeKind, DWORD dwImageType, DW if (CLRPeKind == peNot) { // Not a PE. Shouldn't ever get here. *pPeKind = peInvalid; + fprintf(stderr, "@@[SR] %s:%d\n"); hr = HRESULT_FROM_WIN32(ERROR_BAD_FORMAT); goto Exit; } @@ -51,6 +52,7 @@ HRESULT TranslatePEToArchitectureType(CorPEKind CLRPeKind, DWORD dwImageType, DW if (CLRPeKind & pe32BitRequired) { *pPeKind = peInvalid; + fprintf(stderr, "@@[SR] %s:%d\n"); hr = HRESULT_FROM_WIN32(ERROR_BAD_FORMAT); goto Exit; } @@ -69,6 +71,7 @@ HRESULT TranslatePEToArchitectureType(CorPEKind CLRPeKind, DWORD dwImageType, DW else { // We don't support other architectures *pPeKind = peInvalid; + fprintf(stderr, "@@[SR] %s:%d\n"); hr = HRESULT_FROM_WIN32(ERROR_BAD_FORMAT); goto Exit; } @@ -88,6 +91,7 @@ HRESULT TranslatePEToArchitectureType(CorPEKind CLRPeKind, DWORD dwImageType, DW else { // Not supported *pPeKind = peInvalid; + fprintf(stderr, "@@[SR] %s:%d\n"); hr = HRESULT_FROM_WIN32(ERROR_BAD_FORMAT); goto Exit; } |