diff options
Diffstat (limited to 'openjdkjvmti/fixed_up_dex_file.cc')
-rw-r--r-- | openjdkjvmti/fixed_up_dex_file.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/openjdkjvmti/fixed_up_dex_file.cc b/openjdkjvmti/fixed_up_dex_file.cc index e9522b3984..427d87eedf 100644 --- a/openjdkjvmti/fixed_up_dex_file.cc +++ b/openjdkjvmti/fixed_up_dex_file.cc @@ -104,10 +104,13 @@ std::unique_ptr<FixedUpDexFile> FixedUpDexFile::Create(const art::DexFile& origi /*out_file*/ nullptr, /*header*/ nullptr); std::unique_ptr<art::DexContainer> dex_container; - dex_layout.ProcessDexFile(original.GetLocation().c_str(), - &original, - 0, - &dex_container); + bool result = dex_layout.ProcessDexFile( + original.GetLocation().c_str(), + &original, + 0, + &dex_container, + &error); + CHECK(result) << "Failed to generate dex file " << error; art::DexContainer::Section* main_section = dex_container->GetMainSection(); CHECK_EQ(dex_container->GetDataSection()->Size(), 0u); data.insert(data.end(), main_section->Begin(), main_section->End()); |